I need to fetch the IPaddress assigned by the operator after a successful 3G or LTE data call.
$adb shell netcfg >> doesnt have the assigned IP address.
I tried adb shell dumpsys
and grep ip address, but in vain. Any help/pointers?
I need to fetch the IPaddress assigned by the operator after a successful 3G or LTE data call.
$adb shell netcfg >> doesnt have the assigned IP address.
I tried adb shell dumpsys
and grep ip address, but in vain. Any help/pointers?
You can get the device ip address by this way:
download this app from here it will help you to rum all commands. I have run netcfg and it gives the result as attached in screen.
Change
rmnet_data0
to the desired nic, in my case,rmnet_data0
represents the data nic.To get a list of the available nic's you can use
ip route