Photo-realistic image of a modern computer monitor displaying a Python script. The code has functions and comments related to monitoring IP addresses. On the screen, there are messages indicating 'IP Address Checked' and 'IP Address Changed'. To the side, there's a visual representation of an IP address transitioning from one value to another, symbolizing the change detection.

IP Changed?

Very simple Python script that tracks one or multiple hosts/domains for IP changes, and prints it in a Matrix room.

# docker logs ipchanged
29-09-2023 - 11:26:35 - Logged in as @turtlebot:matrix.org
29-09-2023 - 11:26:35 - IP address for be.yeri.be is 94.105.123.126
29-09-2023 - 11:26:35 - IP address for sg.yeri.be is 58.96.238.208
29-09-2023 - 11:26:35 - IP address for industry.yeri.be is 78.23.172.72
29-09-2023 - 11:29:36 - IP address for be.yeri.be is 94.105.123.126
29-09-2023 - 11:29:36 - IP address for sg.yeri.be is 58.96.238.208
29-09-2023 - 11:29:36 - IP address for industry.yeri.be is 78.23.172.72

Includes a Docker container to keep it running.

I made it less noisy (i.e. won’t talk when the IP didn’t change) and as the IP of my DynDNS hosts hasn’t changed yet, there’s not much to see… 😉


Posted by

in

,

Comments

Leave a Reply…