Android and IPv6 in Java
I am developing an Android application and I need to use IPv6 to connect to a server. IPv6 is enabled on the phone and I can see my local IPv6 address with ip addr . I can also successfully ping6 my phone from the PC and viceversa. But hen I try to get local addresses on Android through the Java command NetworkInterface.getNetworkInterfaces() I only get IPv4 addresses. I also tryed to open a client socket but the line Socket s = new Socket(MYSERVERIPV6ADDRESS, PORT); always throws java.net.SocketException: Invalid argument . I am sure the address is correct because I tryed with the same code