This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
import requests, socket | |
username = "" | |
password = "" | |
hostname = "" # your domain name hosted in no-ip.com | |
# Gets the current public IP of the host machine. | |
myip = requests.get('http://api.ipify.org').text |