Getting ip address and browser info

shindich at my-deja.com shindich at my-deja.com
Mon Jul 10 20:19:53 EDT 2000


In article <3967B9F8.1694E2F3 at bioeng.ucsd.edu>,
  Curtis Jensen <cjensen at bioeng.ucsd.edu> wrote:
> Using python CGI how can I get the ip address and browser info of the
> requestion party?  Thanks.
>
> --
> Curtis Jensen
> cjensen at bioeng.ucsd.edu
> http://www-bioeng.ucsd.edu/~cjensen/
> FAX (425) 740-1451
>
There was already a discussion on this subject. You might want to search
for it on dejanews.
You can also see my sample code on how to get client's IP address at
http://www.shindich.com/sources/cgi/clientip/readme.html

There is one thing to keep in mind however, the client ip address might
be meaningless if the client is behind a firewall or if it's a DHCP
client.

I hope this helps!

Alex Shindich

http://www.shindich.com/


Sent via Deja.com http://www.deja.com/
Before you buy.



More information about the Python-list mailing list