Get gateway ip address in android

Himanshu picture Himanshu · Jun 9, 2011 · Viewed 199k times · Source

How to get gateway IP details , There is option using wifimanager but. If there is no wify how to find gateway,dns and other details in android device when connected using usb tethering.

Answer

user432672 picture user432672 · Mar 21, 2012

I'm using cyanogenmod 7.2 on android 2.3.4, then just open terminal emulator and type:

$ ip addr show
$ ip route show