Development issue/problem:

I need to retrieve the IP address assigned by the operator after a successful 3G or LTE data call.

The $adb netcfg >> shell has no IP address assigned.

I tried resetting the adb shells and warming up the IP address, but to no avail. Help / Indicators ?

How can I solve this problem?

Solution 1:

Try this command, it will help you find the IP address.

Display the ifconfig tiwlan0 shell

tiwlan0 is the name of the device’s Wi-Fi network interface. This is a common command to get the IP address,

beehives

It is produced as follows

usb0 DOWN 0.0.0 0.0 0.0 0×00001002sit0 DOWN 0.0.0 0.0 0.000080ip6tnl0 DOWN 0.0.0 0.0 0.0 0.0 0×00000080gannet0 DOWN 0.0.0 0.0 0.0 0.0 0x000080gannet0 DOWN 0.

Solution 2:

Try it:

Adb shell ip addr show rmnet0

He’s going to take something like this:

3: rmnet0: mtu 1500 qdisc htb state UNKNOWN qlen 1000
link/[530] inet 172.22.1.100/29 area global rmnet0
inet6 fc01:abab:cdcd:efe0:8099:af3f:2af2:8bc/64 area global dynamic
valid_lft forever preferred_lft forever
inet6 fe80::8099:af3f:2af2:8bc/64 area link
valid_lft forever preferred_lft forever

This part is your IPV4 assigned by the operator.

within a period of 172.22.1.100

This part is your IPV6 assigned by the network operator.

inet6 fc01:abab:cdcd:efe0:8099:af3f:2af2:8bc

Solution 3:

According to the comments: netcfg has been removed in Android 6.

Try

beehives

Or

Show Shell
[email protected]:/ $netcfg

Solution 4:

Try this command for the <= Marshmallow version,

Means of advertising

Attached device list
38ccdc87 Device

Doping control 5555

Restart in TCP port mode : 5555

Adb shell ip addr show wlan0

24: wlan0: mtu 1500 qdisc mq state UP qlen 1000
link/air ac:c1:ee:6b:22:f1 brd ff:ff
inet 192.168.0.18/24 brd 192.168.0.255 scope global wlan0
valid_lft forever preferred_lft forever
inet6 fd01::1d45:6b7a:a3b:5f4d/64 scope global temporary dynamic
valid_lft 287sec preferred_lft 287sec
inet6 fd01 ::aec1:eeff:fe6b:22f1/64 scope global dynamic
valid_lft 287sec preferred_lft 287sec
inet6 fe80::aec1:eeff:fe6b:22f1/64 scope link
valid_lft forever preferred_lft forever

To establish a connection with the device, proceed as follows

adb connection 192.168.0.18

connected to 192.168.0.18:5555

Make sure you place adb in this android platform toolset

Solution no. 5:

This way you can determine the IP address of the device:

adb shell ip route > addrs.txt
#case 1:Nexus 7
#192.168.88.0/23 dev wlan0 proto kernel scope link src 192.168.89.48

#Business 2: Smartsian T1,Huawei C8813
#default via 192.168.88.1 dev eth0 metric 30
#8.8.8 via 192.168.88.1 dev eth0 metric 30
#114.114.114.114 via 192.168.88.1 dev eth0 metric 30
#192.168.88.0/23 dev eth0 kernel link src 192.168.89.152 metric 30
#192.168.88.1 dev eth0 kernel link 30

ip_addrs=$(awk {‘if( NF >=9){print $9;}’}’addrs.txt’)

echo device ip address $ip_addrs

Solution no. 6:

Try it:

Adb shell ip addr show rmnet0 | grep ‘inet’ | cut -d ‘ -f6|cut -d/ -f1

It returns the LPI4 assigned by the operator.

172.22.1.215

Solution no. 7:

Adb shell ip addr > ippdetails.txt
Lists all IPs assigned to the devices.

Solution no. 8:

You can also try this:

Step 1: shell adb
Step 2: ip -f inet addr show wlan0

Solution no. 9:

Download this application from here, it will help you to understand all the commands. I ran netcfg and it displays the result as attached to the screen.

Output screen

Solution no. 10:

ip route | grep rmnet_data0 | cut -d -f1 | cut -d/ -f1

Change rmnet_data0 to the desired nickname, in my case rmnet_data0 is the data nickname.

For a list of available nicknames, please use ip-route.

Good luck!

 adb shell ifconfig permission deniedadb shell netcfg not foundandroid check device ip adbadb connect ipandroid dhcp 9v4-rmnet_data0minishift bridge networkminishift public iphow to access minishift consoleminishift isominishift hyper-vminishift dockerhttp external ip 8080[external-ip]:8080openshift 3.11 nodeportexternal ip openshiftopenshift exposing a serviceopenshift 3.11 external ipandroid localhost ip addressfind public ip of android phoneandroid local ip addresshow to find default gateway on android phonehow do i find the ip address of my iphonewhat is my external ip addressexternal ip address rangehow to find the dns serverstatic ip primary dnshow to check website from command promptcmd whats my iphow to enable usb debugging using adb commandadb commandsadb command to connect to wifiadb commands for mobile testingadb ifconfig permission deniedhow to get ip address and names of all devices in local network on androidadb connect to device

You May Also Like

Bluetooth Headphones Not Connecting in Windows 10 [solved]

Windows 10 is one of the dynamic members of the Microsoft family…

Logitech K380 Software, Multi-Device Keyboard, Updates

Hello everyone, welcome to Logitechuser.com. One of the sites that attempts to…

13 Best Puzzle Games For Android To Play On Your Smartphone

Sherlock Holmes. Byomkesh Bakshi. Pradosh Mitter. Hercules Poirot. Miss Marple. Do the…

How to Fix Nvidia Control Panel Missing Issue? [Solved]

If you are looking for a solution to the problem of skipping…