On Tue, Jul 7, 2009 at 6:45 PM, Fred Atkinson<fatkin...@mishmash.com> wrote:
>        Is there a Python function I can use to get the user's IP
> address so I can display it on his browser?

from socket import gethostname, gethostbyname
ip = gethostbyname(gethostname())

Cheers,
Chris
-- 
http://blog.rebertia.com
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to