Wednesday, 13 August 2014

Dynamic Public IP Address Finder (DynDNS alternative)

If you want to connect to your computer remotely from the WAN and your public ip is dynamic, then you need to know it at all times.
This small project in python is intended for this purpose, for those who don't want to use dyn dns services.

How this python script works:
  • It finds your public IP from the showmyip.com
  • Creates an ips.txt if it doesn't exist, and writes the ip
  • If the file already exists, it compares the ip from the file with the website's one, if it's the same it doesn't do anything
  • If it's different, it overwrites the file and then sends an email
You can convert it to exe and run it as often as you want through windows scheduled tasks, for an up to date public IP.