Python to tell what is the IP of my PC .

Gabriel Genellina gagsl-py at
Thu Nov 9 03:09:07 CET 2006

At Wednesday 8/11/2006 21:18, Nicolas G wrote:

> > How can I use python to get the real IP address of my DSL router (when
> > my PC is part of the local home LAN) ?
>  win32api raise the error "module not exsit"
>socket.gethostbyname(name)the router doesn't have a hostname.

Use the small script in the recipe's comments section.

Gabriel Genellina
Softlab SRL 

Correo Yahoo!
Espacio para todos tus mensajes, antivirus y antispam ¡gratis! 
¡Abrí tu cuenta ya! -

More information about the Python-list mailing list