Skip to content. | Skip to navigation
Get my IP from the internet (needed if behing a router)
This is the simplest way that I could find:
>>> import urllib2 >>> urllib2.urlopen('http://whatismyip.org').read() 'www.xxx.yyy.zzz'
This site conforms to the following standards: