DZone Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world
Python - My External IP Address
// My external ip address
import urllib
url = urllib.URLopener()
resp = url.open('http://myip.dk')
html = resp.read(114)
end = html.find("</title>")
start = html.find("IP:") + 3
print html[start:end].strip()





