For situations where the public IP is constantly changing, install a background script using No-IP’s service:
- Install No-IP DUC Client:
cd /usr/local/src
tar xzf noip-duc-linux.tar.gz
cd noip-2.1.9-1
sudo make
sudo make install
- Create and Configure the No-IP DUC Client:
sudo /usr/local/bin/noip2 -C
- You will be prompted to enter your No-IP username, password, and hostnames you wish to update.
- Run the No-IP DUC Client:
sudo /usr/local/bin/noip2
- Check the No-IP DUC Client Status:
sudo /usr/local/bin/noip2 -S
- Set Up Automatic Startup:
- Edit the crontab:
sudo crontab -e - Add the following line for auto-start:
@reboot /usr/local/bin/noip2