How to display wifi IP address
Subject should be pretty self explanatory. How do I display the IP address that I get when I'm on a WIFI network?
Also, is there an app that would allow me to ping other IP addresses without having root access? I've looked/searched, but can't find the answers to these two.
How to display wifi IP address
Do you mean your internal IP or the external IP of the wi-fi network?
for external, when connected to wi-fi on the G1, visit http://whatismyip.com
for internal, and for your other question, I'm not sure...
How to display wifi IP address
No, specifically what IP address gets assigned to the phone itself, not the IP that the Internet sees.
But thanks.
I figured it might be under the "about this phone" like the MAC address, IMEI, etc.... I thought I also might find it under the "advanced" section of the wifi settings, but apparently that's only for configuring a static IP.
How to display wifi IP address
Just found how to get your internal IP:
Settings >> Wireless Controls >> Wi-Fi Settings
At the bottom under "Wi-Fi networks"
tap the connection you are connected to
It brings up a window with info like:
Status
Speed
Signal Strength
Security
IP Address
How to display wifi IP address
Weird, I thought I tried that, I'll try again, thanks.
How to display wifi IP address
Yep, worked like a charm. Thanks
Hmm, I wish it showed the default gateway too.
I see that OscanO will do tcp port scans, but it would be nice if it would just do a ping.
How to display wifi IP address
In addition, to get it from an application, you can use the following piece of code:
public String getLocalIpAddress() {
try {
for (Enumeration en = NetworkInterface.getNetworkInterfaces(); en.hasMoreElements() {
NetworkInterface intf = en.nextElement();
for (Enumeration enumIpAddr = intf.getInetAddresses(); enumIpAddr.hasMoreElements() {
InetAddress inetAddress = enumIpAddr.nextElement();
if (!inetAddress.isLoopbackAddress()) {
return inetAddress.getHostAddress().toString();
}
}
}
} catch (SocketException ex) {
Log.e(LOG_TAG, ex.toString());
}
return null;
}
See:
http://www.droidnova.com/get-the-ip-address-of-your-device,304.html
How to display wifi IP address
How to display wifi IP address
and very Thanks also, this code is very useful
How to display wifi IP address
There's an app available called Network Info II that provides internal, external ip, MAC, SSID, Gateway, DNS Servers, etc and a bunch of other information.
The other network app I use is Network Mapper that will scan the network you are connected too.
I've found both useful resolving friends' network issues.