DarkBlue wrote:
> Chris wrote:
>
>
>>How do I find and print to screen the IP address of the computer my
>>python program is working on?
>
>
> def readip():
> import re, urllib
> f = urllib.urlopen('http://checkip.dyndns.org')
> s = f.read()
> m = re.search('([\d]*\.[\d]*\.[\d]*\.[\d]*)', s)
> return m.group(0)
>
> myip = readip()IP address and other browser header information available at: http://xhaus.com/headers -- http://mail.python.org/mailman/listinfo/python-list
