How to get IP address of client from CGI module?

Cameron Laird claird at lairds.us
Wed Apr 11 05:50:54 CEST 2007


In article <LDXSh.14069$JZ3.404 at newssvr13.news.prodigy.net>,
John Nagle  <nagle at animats.com> wrote:
>   The documentation for Python's CGI module doesn't seem to say how to get
>the IP address of the client.  Don't see an obvious way to get that info
>from reading the source, either. Ideas?
>
>					John Nagle

os.environ['REMOTE_ADDR']?



More information about the Python-list mailing list