简体   繁体   中英

How to set a static IP in Android Things running on Raspberry Pi 3

I wish to change the Ethernet IP Address of the Raspberry Pi3 board that is running Android Things OS. Currently it automatically fetches an IP Address available in the connected network. But I wish to assign a fixed/static IP to the device. Is it possible to set a static IP using ADB?

I don't know the solution based on Android-things.

But I usually try to prevent the use of fixed IP (unless the device runs forever) set in the device itself.

I prefer to use the DHCP of the modem to set the IP based on the MAC adress. This prevent some conflict.

You can see more information on this post

You can set a static IP usually through your router settings. Try accessing your router settings usually through the web browser at:

http://192.168.0.1/

Assuming you have never accessed this the username is usually admin , and the password is password . You can check the router name online to find the default username and password.

Navigate the menus to find a page which shows you he connected devices. See pic for an example.

图片。

Every routers interface is different.

If you have a setting that says DHCP see if you can change it to a reserved IP so that the IP address assigned doesn't change.

Remember different routers have different interfaces so you must do some searching about yours to find the setting.

You can do this from any computer connected to your internet, doesn't have to be on the raspberry to make the changes.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM