Kartic, Quarta 05 Janeiro 2005 14:08, wrote:

> socket.gethostbyaddr(socket.gethostname())
> 
> will return a tuple containing fully qualified hostname,  alternative
> hostnames, ip addresses (>1 if multihomed).
>
> or
> 
> socket.gethostbyname(socket.gethostname())

None of these work with computers with more than one interface...  They get
only one of them.  It would be safer, then, to specify the desired
interface or use an alternative method.

-- 
Godoy.     <[EMAIL PROTECTED]>

-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to