mirror of https://github.com/balkian/gists
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
7 lines
157 B
Python
7 lines
157 B
Python
6 years ago
|
try:
|
||
|
import urllib2
|
||
|
except ImportError:
|
||
|
from urllib.request import urlopen
|
||
|
response = urlopen('http://v4.ifconfig.co/ip')
|
||
|
HOSTNAME = response.read()
|