Thursday, 29 September 2016

how to get android device ip address by shell?


adb shell supports ifconfig.  but it doesn't support ifconfig list all network cards


to do this you should do :

netcfg

to get all "network cards"





then run

ipconfig wlan0

wlan0 is my network card's name.

then it will return like this:




http://stackoverflow.com/questions/13169249/adb-command-for-getting-ip-address-assigned-by-operator

No comments:

Post a comment