how to obtain its ip address ?
missive at frontiernet.net
Wed Jun 23 23:03:45 CEST 2004
On 2004-06-23, marco <manatlan at online.fr> wrote:
> I'd search a lot ... but i had not found
> how can i obtain my ip address (when i'm connected to the www) ?!
Probably it will depend somewhat on your operating system.
This works for me ...
>>> import socket
>>> hostname = socket.gethostname()
More information about the Python-list