Created
July 25, 2018 17:24
-
-
Save balkian/b21443fe1d57fdfe0fe2f79827be3551 to your computer and use it in GitHub Desktop.
This file contains 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
try: | |
import urllib2 | |
except ImportError: | |
from urllib.request import urlopen | |
response = urlopen('http://v4.ifconfig.co/ip') | |
HOSTNAME = response.read() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment