TransWikia.com

Raspberry pi's local IP keeps changing. What are the solutions?

Raspberry Pi Asked on January 25, 2021

It keeps changing beetween 10.0.0.1, 10.0.0.2, 10.0.0.3 etc. Is there a way to solve this without giving raspberry pi a static address? Because I ssh to the raspberry pi, or visit it on my browser, and it’s slightly annoying to keep finding and changing the addresses. Thanks a lot!

One Answer

This shouldn't happen with a properly configured DHCP server.

You can either reserve an IP Address in your router OR request the DHCP server to assign one. E.g. the following in /etc/dhcpcd.conf will request an address on wlan0.

interface wlan0
request 10.0.0.99

NOTE This will only work if you request an IP Address within the range managed by the DHCP server which is available, otherwise the DHCP server will allocate an address as normal.

See How to set up networking/WiFi

Answered by Milliways on January 25, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP