I can't seem to use netcfg on Nougat. If I use ifconfig ip is not updating.
If there is another method to change IP on command line or adb shell, I am all ears.

2 Answers 2


You can try using ip command.

How it compares to ifconfig

Edit: To set up an IP address you can use:

ip address add dev eth0

or the long form

ip addr add broadcast dev eth0

look up current config using

ip addr show


In you terminal, run these commands:

adb root 
adb shell
$ ifconfig eth0  # to fix your address 
$ netcfg  # show address
  • why ifconfig IP will automaticaly lose after a while?
    – CS QGB
    Commented Dec 20, 2022 at 9:47

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .