getting clients ip address

Leader leader730 at hotmail.com
Sat Sep 7 16:03:57 EDT 2002


Hello, I am using Python for my website, more specifically Spyce+mod_python,
what I want to do is print out the clients ip address on the site so it can
say something like "your ip is:xxx.xxx.xxx.xxx" basicly the python version
of <?php echo getenv("REMOTE_ADDR"); ?>
I'm sure I saw something a while ago while browsing through the module docs
but I can't find it anymore.

thanks







More information about the Python-list mailing list