Ty wrote: > I'd like to grab the users external IP address. I'm using it for a > spam catching class that I'm porting over to Django/Python. Is this > possible? > > This person outlines how to 'hack' it, but I'd rather not depend on an > external site. > http://dmiessler.com/blog/how-to-use-python-to-get-your-external-ip > There might be a Python networking library out there, or you could parse the output of "ifconfig" on linux, or "ipconfig" on windows. You could look at the SERVER_NAME environmental variable, which is usually the server's fqdn, which is as good as the IP address.
Jeff Anderson
signature.asc
Description: OpenPGP digital signature