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 :


to get all "network cards"

then run

ipconfig wlan0

wlan0 is my network card's name.

then it will return like this:

No comments:

Post a comment