Monday, November 30, 2009

Android ifconfig vs netcfg

On my Android emulator ifconfig shows nothing.

In order to get all interfaces on your emulator or device you could use netcfg:

# netcfg
lo       UP    127.0.0.1    255.0.0.0    0x00000049
dummy0   DOWN  0.0.0.0      0.0.0.0      0x00000082
rmnet0   DOWN  0.0.0.0      0.0.0.0      0x00001002
rmnet1   DOWN  0.0.0.0      0.0.0.0      0x00001002
rmnet2   DOWN  0.0.0.0      0.0.0.0      0x00001002
tiwlan0  DOWN  0.0.0.0      0.0.0.0      0x00001002

3 comments:

  1. Woohoo!!!! Thanks! I've been dying trying to go through dmesg... :)

    ReplyDelete
  2. Well, but ifconfig will do, e.g.,
    ifconfig lo

    ReplyDelete
  3. my emulator only show de interface lo. How to I see all the interfaces? I'm running the android-x86-2.2-r2-asus_laptop.iso stable Release.

    ReplyDelete