Is there a way to find IP address?

Tim Roberts timr at
Fri Sep 15 08:56:17 CEST 2006

"Lad" <python at> wrote:
>Normaly I can log user's IP address using os.environ["REMOTE_ADDR"] .
>If a user  is behind a proxy, I will log  proxy's IP address only.
>Is there a way how to find a real IP user's address?

Not reliably, but why would you want to?  That IP address is not reachable
from your server anyway.
- Tim Roberts, timr at
  Providenza & Boekelheide, Inc.

More information about the Python-list mailing list