I have access to the DHCP list page at my home router but in general, I probably won't have access but thanks for the suggestion!broo0ose wrote:If you have access to the DHCP servers at each location then you can set them to give you the same IP address whenever they see the RPi's MAC address.
Alternatively, you could get the Pi to post its address somewhere. Say to a twitter account.
Thanks for replying, I think I'll do the first one, it allows the greatest portablity and I use mini WiFi dongles anyway so getting two is not a problem, thanks a lot!bredman wrote:There are two main methods to get around this...
1. Turn your RPi into a WiFi hotspot and let it assign its own IP addresses to itself and any device that connects to it. This is very useful if you want to SSH in to do some work because you don't need a WiFi access point available. However, you lose the ability to connect to the internet, unless you have two WiFi devices on the RPI, one as a hotspot and one to connect to the internet.
2. Use hostnames instead of IP addresses. Unfortunately, some WiFi Access Points are very bad at handling hostnames so this may be hit-and-miss.
Code: Select all
sudo apt-get install avahi-daemon
Users browsing this forum: mdavid and 57 guests