Checking when external IP has changed with Python
· ☕ 4 min read · ✍️ Brett Johnson
This is an exercise I thought of on the drive home from work. Just a task to help give context to the concepts I have been learning.
This exercise came from wanting to VPN into my home network. The home network has a dynamic external IP address, which means I need a way to know if that IP has changed.
The script IPcheck.py helps solve that problem. It’;s been created to check the current external IP against a stored value and notify by email if the two do not match.