On Fri, 5 Aug 2005, Joseph Quigley wrote:

> Is it possible to get my internet and/or network IP address from Python?
> Is there any other way to get it?

Hi Joe,

I think you're looking for socket.gethostbyname().

    http://www.python.org/doc/lib/module-socket.html#l2h-2594

Here's an example using the socket.gethostbyname() function:

    http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/335890

_______________________________________________
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor

Reply via email to