Machine identification

Erik Max Francis max at alcyone.com
Wed Sep 8 19:42:43 EDT 2004


John Fabiani wrote:

> The above does not work for me.
> 
> socket.gethostbyname(socket.gethostname())
> > '127.0.0.2'
> 
> the ip address is 192.168.1.211 for the computer. And 127.0.0.2 is not
> localhost.

It is likely your machine is misconfigured.

-- 
 __ Erik Max Francis && max at alcyone.com && http://www.alcyone.com/max/
/  \ San Jose, CA, USA && 37 20 N 121 53 W && AIM erikmaxfrancis
\__/ My life was better before I knew you.
    -- Edith Wharton (to Morton Fullerton)



More information about the Python-list mailing list