You are reading a single comment by @rhb and its replies. Click here to read the full conversation.
  • Perhaps an Android question just system upgraded my phone and all my pi to mobile hotspot 192.168. addresses are now different.

    I guess that's normal, just wondering why it'd not keep the old ones?

  • Not sure I 100% understand the question, but if you're asking why your devices on your local network have ended up with different IPs...

    It's because whatever is acting as your DHCP server on your local network (probably your router) gives out IP addresses dynamically (the clue is in the name - Dynamic Host Configuration Protocol) within a given address range, something like 192.168.1.5 to 192.168.1.253. So it doesn't give out 'forever' addresses, they constantly change.

    You can assign a static IP address if you need one. Normally that would be for servers or if you need to access something remotely, but by default IP addresses are dynamic.

    If you want to set a static IP for a Pi just google it, there are loads of tutorials.

  • Random thought on this. I think most modern mobiles and Rapsberry Pi tend to use locally generated (spoofed) mac addresses now days. These can change when you update/reimage a system. I know my Galaxy s10 changes mac addresses after major updates. Pretty sure my Pi4 devices do too. I could be wrong though, its not something I've paid attention to.

    If your DHCP lease was still valid, it might detect an upgraded device as a new device if the Mac has changed hence the new DHCP lease.

About

Avatar for rhb @rhb started