I am testing the IPv6 support in Android. For lack of an IPv6 environment, 
I use the link-local IPv6 address for test.

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 (I saw someone can 
ping6 the PC from phone, but I can't ping my link-local address using IPv6 
and More APP).

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 on my computer and works perfectly.

However, i open a ServerSocket in my phone, using IPv6 address, PC can 
conncet to my phone.

It seems that IPv6 is supported by the operating system but partly 
supported by the Java virtual machine in Android OS(as a server it can 
works). Is there a way to solve this problem?


Thank you very much!

-- 
-- 
unsubscribe: android-porting+unsubscr...@googlegroups.com
website: http://groups.google.com/group/android-porting

--- 
You received this message because you are subscribed to the Google Groups 
"android-porting" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-porting+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to