Open GoogleCodeExporter opened 8 years ago
Hey Jeffrey,
I am not sure if we will adress this issue...
But lets see.
Cheers,
Tobi
Original comment by tobiassc...@gmail.com
on 13 Oct 2012 at 4:09
Hi,
Is there any known workaround for this issue please ?
Or better, a simple patch for tuiodroid so that any ipv6 address is ignored for
example :-) ?
Thanks !
Original comment by informat...@gmail.com
on 23 Feb 2014 at 10:44
If your phone is rooted, you can install "Disable IPv6" from the market and
temporarily force your interface to use IPv4.
Original comment by ellion0815@googlemail.com
on 31 Mar 2015 at 4:01
Hi,
Just replace the getLocalIpAddress() function with:
public String getLocalIpAddress() {
String ipv4 ="";
try {
for (Enumeration<NetworkInterface> en = NetworkInterface.getNetworkInterfaces(); en.hasMoreElements();) {
NetworkInterface intf = en.nextElement();
for (Enumeration<InetAddress> enumIpAddr = intf.getInetAddresses(); enumIpAddr.hasMoreElements();) {
InetAddress inetAddress = enumIpAddr.nextElement();
if (!inetAddress.isLoopbackAddress() && InetAddressUtils.isIPv4Address(ipv4 = inetAddress.getHostAddress())) {
String ip = inetAddress.getHostAddress().toString();
System.out.println("ip---::" + ip);
// return inetAddress.getHostAddress().toString();
return ipv4;
}
}
}
} catch (SocketException ex) {}
return null;
}
Original comment by lang.oli...@gmail.com
on 26 Jul 2015 at 5:54
Original issue reported on code.google.com by
JeffreyJ...@gmail.com
on 9 Aug 2012 at 12:52