premudeshi / Server-PublicIP-Updater

This is a python script that runs on boot, and if the public ip has changed from the first time, it will email the new IP. This is made for homelab servers where public IP isn't static.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

About

This is a simple python script that was developed for a homelab server, that is port forwared through an ISP that doesn't offer a static IP address. Since the homelab server doesn't run 24/7, it just runs once when it is started. It creates a file, and saves the IP there. If it detects that the IP has been changed, it uses Twillo to send an Whatsapp Message, notifying you that the IP has changed.

Getting a Twillo Account

Installing

Prequisities

  • Public IP Python Library
      `pip install publicip`
  • Requests Library
      `pip install requests`
  • Twillo Library
      `pip install twillo`

About

This is a python script that runs on boot, and if the public ip has changed from the first time, it will email the new IP. This is made for homelab servers where public IP isn't static.


Languages

Language:Python 100.0%