I would like to have a static ipaddress on my Android_x86.

I know there is a lot of questions about this and i tried some proposed answer, like :

ifconfif eth0 down
ifconfig eth0 [IP] netmask [masque] up

It works, but these changes are removed after a reboot. It's a big problem in my case. I tried some solutions like edit the init.sh, or third party app on the store, but neither works.

What should I do ? Am I missing something ?


I did it, editing the file /etc/init.sh did the trick for me. just adding at the end :

ifconfig eth0 [IP] netmask [masque] up

It should be ran at boot.

|improve this answer|||||
  • but what if it says "unknows id" to ifconfig? – Suncatcher May 24 '17 at 16:23
  • I would love to help you but I can't remember anything about this, it was some little internship project. Sorry ! – GlorfSf May 30 '17 at 7:47
  • ifconfig eth0 [IP] doesn't seem to work in Android x86 7.1 – Stephen M -on strike- Oct 30 '18 at 18:27
  • /etc/init.sh isn't a universal solution, very ROM-specific. – Irfan Latif Dec 30 '19 at 20:00

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.