26

I would like to see my network addresses on my phone. On Windows I can use ipconfig for this and ifconfig on Linux. But how can I see this information on my Android device? Is there an application or command for this?

More specifically I would like to see what IPv4 address I get and what IPv6 address I get or if I don't get one.

4
  • You won't get an IPv6 address, Android doesn't support it: android.stackexchange.com/questions/3718/… Commented Dec 16, 2010 at 21:12
  • @Matthew: I actually get an IPv6 address, but it must be some kind of IPv4toIPv6 or some kind of local address, since it's not the same as when I visit an website. And I can't visit ipv6.google.com
    – Jonas
    Commented Dec 16, 2010 at 21:50
  • Ah, my bad. That must be the "partial support" mentioned on the Google forum. Commented Dec 16, 2010 at 21:52
  • @Matthew: There may be something with my network operator too. I actually get a local IPv4 address from them too, it's not the same as I see if I visit an What is my IP service. Here is an interesting blog post T-Mobile: Clever or Insane? but I don't have T-Mobile as network operator.
    – Jonas
    Commented Dec 16, 2010 at 21:57

3 Answers 3

30

Android comes with ifconfig, install Terminal Emulator and type "ifconfig eth0", or use "netcfg" to list all available devices. You need root to use ifconfig though.

5
  • 3
    I have tried with Android Terminal Emulator but nothing happens if I execute ifconfig and if I run ifconfig eth0 I get eth0: No such device. I tested with netcfg now and it prints a list with IPv4, but there is no information about IPv6. Thanks anyway.
    – Jonas
    Commented Dec 16, 2010 at 10:18
  • The default interface for 3G seems to be named rmnet0 instead of eth0 on my Android, so ifconfig rmnet0 works better.
    – Jonas
    Commented Dec 16, 2010 at 21:52
  • 2
    you may use "ifconfig wlan0" in your terminal if you have connected with WiFi
    – user90806
    Commented Jan 20, 2015 at 8:42
  • Use netcfg to get the list of available devices. Find the short name of the most likely device (it should have the network IP address of your device listed next to it). Then use ifconfig <shortname>. For example if netcfg shows that wlan0 has your device's actual network IP address (not bogus IP like 0.0.0.0), then you should execute ifconfig wlan0 to get more details.
    – ADTC
    Commented May 8, 2015 at 2:33
  • @Ziana Mitchell: Thanks for the proposed edit, however I have rejected your proposed edit. Your edit is good information, however you should put it in your own answer rather than editing this one.
    – Lie Ryan
    Commented Oct 2, 2018 at 15:39
7

just type netcfg

it will lists the interface, and work on any terminal emulator. running on the phone itself, or remotely via adb.

3
  • 2
    adb shell netcfg oh yeah Commented Feb 20, 2016 at 23:54
  • No netcfg on my 6.0.1 device, not on busybox either.
    – m0skit0
    Commented Dec 3, 2018 at 10:43
  • This is no longer on modern android versions.
    – Warren P
    Commented Feb 18, 2020 at 20:13
2

NetGenie Lite can do that.

1
  • I installed it but I find nothing about IPv6. Thanks anyway, it was an interesting app.
    – Jonas
    Commented Dec 16, 2010 at 12:13

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .