How to display wifi IP address

zeltcin14

New member
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.
 
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...
 
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.
 
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
 
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.
 
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
 
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.
 
You can click on the link when you are online, and gives you the IP. Unfortunately, it gives you a subnet mask or default gateway that is both important for troubleshooting.
 
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 What Is My IP ® | Shows Your IP Address.

for internal, and for your other question, I'm not sure...

Thanks for your information. I have checked my external ip address from this site ip-details.com
 
-

Hi All,I search for a tip on how to display a window on the client screen, in which I would be able to display custom information. In a perfect world, it would be triggered by a right-click on a NPC, something similar to when you address a NPC who will tell you about a quest you can pick.I found SayTo in some pieces of code, but Im not sure this will help.Can one of you show me the way ?I cant test as Im at work Many thanks,Mystemas.
 
Back
Top