Android Enthusiasts Stack Exchange is a question and answer site for enthusiasts and power users of the Android operating system. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I would like to know what IP-address my Android phone has. E.g. if I use my phone over WiFi, how can I get the local IP-address that is assigned to my phone?

share|improve this question
up vote 89 down vote accepted

The easy way is to go to your WiFi Settings, and hit Menu > Advanced. It'll show up there, or you can set it to a static IP if you want.

The cool way is to dial *#*#4636#*#* to open the Testing menu. Then click WiFi information, then WiFi Status.

share|improve this answer
When I call ##4636## I get this message: Connection problem or invalid MMI code. And in the WiFi Settings advanced menu, I can not see the IP-address if it is set by DHCP. But thanks for that menu, I didn't know about it. – Jonas Nov 19 '10 at 17:58
Ah, *#*#4636#*#* worked, better. Thanks! – Jonas Nov 19 '10 at 17:59
Haha, sorry about that, yeah apparently an asterisk resolves to an italic pound sign? So you can't actually see your DHCP address in your WiFi Settings? I'm running Cyanogenmod and I can see mine towards the bottom of the menu. Didn't know that wasn't a standard feature. :O – kcoppock Nov 19 '10 at 18:03
No, there is no IP-address there on my Nexus One with Android 2.2. but the Testing meny was very good. – Jonas Nov 19 '10 at 18:07


adb shell netcfg | grep wlan0

from your desktop is the best option if you're already developing for Android and have adb and an USB connection setup.

Sample output:

wlan0 UP [...]

Confirm with:

adb shell ifconfig wlan0

ifconfig on Android (home-brewed?) is different from the one on desktops (net-tools package on Ubuntu 15.10) as it requires the interface to be given.

This is also mentioned at: Is there a command or application similar to ipconfig?

You could also install a terminal emulator like Teriminal Emulator from Jack Palevich, open it and type: netcfg. But in that case you'd be better off with some app that shows the IPs, since typing on devices is a pain (unless you've got an external keyboard...).

If all you want it so SSH into the device, adb shell is the way to go:

If you are developing a server app, the most user-friendly thing to do would be to show the device's IPs on some TextView, which has a pure-Java method: |

share|improve this answer
Works on Android 4.2.1 as well. – Firelord Dec 2 '15 at 11:08

The easiest way is using a tool like e.g. OS Monitor, which shows you (amongst others) also a lot of network details:

OS Monitor
OS Monitor showing network interface details (source: Google Play; click image to enlarge)

As the screenshot shows, this app reveals for each network interface:

  • interface name¹
  • IPv4 IP address assigned (if, this interface is currently unused)
  • IPv6 address (if available)
  • MAC address
  • packet statistics (i.e. transfered data)
  • a status

¹ interface names might be handled differently on different devices. But in most cases you can tell from the IP where it belongs to. Furthermore, rmnet is mostly used for GPRS (mobile data), while WiFi uses names like tiwlan or eth.

share|improve this answer

The IP Address Widget displays a small widget on your home screen with your IP address. I've been using if for a couple of weeks.

share|improve this answer

I like NetGenie Lite for all sorts of networking info.

share|improve this answer

protected by Community Jul 11 '13 at 15:19

Thank you for your interest in this question. Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).

Would you like to answer one of these unanswered questions instead?

Not the answer you're looking for? Browse other questions tagged or ask your own question.