Python to tell what is the IP of my PC .
Cameron Walsh
cameron.walsh at gmail.com
Wed Nov 8 21:37:04 EST 2006
Gabriel Genellina wrote:
> 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) ?
>>
>> <http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/162994>http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/162994
>>
>>
>> import
>> win32api raise the error "module not exsit"
http://sourceforge.net/projects/pywin32/
>> and
>> socket.gethostbyname(name)the router doesn't have a hostname.
use the hostname you create on noip.com or dyndns.com etc.
Cameron.
More information about the Python-list
mailing list