3

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 :

su
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 ?

1 Answer 1

-1

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.

4
  • but what if it says "unknows id" to ifconfig?
    – Suncatcher
    Commented May 24, 2017 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
    Commented May 30, 2017 at 7:47
  • ifconfig eth0 [IP] doesn't seem to work in Android x86 7.1 Commented Oct 30, 2018 at 18:27
  • /etc/init.sh isn't a universal solution, very ROM-specific. Commented Dec 30, 2019 at 20:00

You must log in to answer this question.

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