I've even tried this piece of code:
byte[] ip = InetAddress.getLocalHost().getAddress();
for (int i=1; i<=254; i++)
{
ip[3] = (byte)i;
InetAddress address = InetAddress.getByAddress(ip);
if (address.isReachable(1000))
Log.d(LOG_TAG, "Name: " + address.getHostAddress());
}
But all I get is the loopback address.
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en