A small and lightweight program to monitor your home IP 24/7 and send an email to yourself using SMTP. Useful for people who don't have DDNS and need to know if their ISP assigned IP has been changed.
To get started, fill out checkip.env
with the SMTP host and credentials you wish to use. Thats it! Just compile and run.
This has only been tested wth GMail SMTP. Other hosts may not work.
To enable systemd service automation, edit checkip.service
and change the lines containing ExecStart=
and WorkingDirectory=
to where the binary is in your filesystem. Be sure to put the folder path and not binary path for WorkingDirectory=
Once done, change the line User=user
to the user account you wish the service to run as and copy/move the file to /etc/systemd/system/
Finally, enable the service and start it using systemctl enable --now checkip.service