You are reading a single comment by @rhb and its replies. Click here to read the full conversation.
  • 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.

  • Yeah at home the dhcp gives a long enough time span that devices tend to keep same IP.

    Mobile hotspot connecting pi to my phone for out n about use did similar, meaning I could setup quick remote access via juice ssh.

    Suddenly if I reboot a pi connected to my phone 4g via hotspot it issues it a new ip address where only the 3rd number set is changed e.g 192.168.xx.yy becomes 192.168.zz.yy. This means I have to find the ip address in the connected device list, then update juice ssh, then accept a new verification key when I connect after each shutdown or reboot. This isn't as simple as I'd previously enjoyed.

    I thought it might be to do with a recent Android upgrade on my phone but it's the same when using a different device.

    I'll look into setting a static IP at the pi end of things as that'd help loads. Ta.

About

Avatar for rhb @rhb started