My home IP changes every now and then, I never had this problem with the many years I had Comcast but now with FIOS it happened three times in less than two months. Of course the IP change always happen in the middle of the night.
I have a server running outside my home network. If my home IP changes it can be problematic for several programs running on the server, mostly mail but also the ability to SSH to the server. I would have to log in to the server through the web interface, acknowledge the new IP is me, change the IP in several configuration files, and then restart the services.
I rather do this automatically :)
- Your home IP must be registered with a dynamic DNS service.
- Your home cable modem must be able to update the IP with the DNS provider. I'm sure all of them are.
- Put all four files in a separate directory.
- Update the vars file with the correct information.
- Run the script
change-ip
through cron as root.