Skip to content

ofergr/monitor_ip

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

This script is used to let me know when my laptop IP was changed
due to DHCP assingment.
When it does, it send me an Email to my gmail address.
You need to create an App password in your gmail settings,
and add .env file with GMAIL_ADDR and GMAIL_PASWD values.

The script lists all IP addesses in the system, finds the one
with the requested prefix, and compare it with the IP stored
in a file. If they are not the same, the file is updated with the new
ip, and an Email is sent with the new IP.

In windows, I set the script to run twice a day using the windows's task
scheduler.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages