getting clients ip address

Leader leader730 at
Sat Sep 7 22:03:57 CEST 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" 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.


More information about the Python-list mailing list