Re: How to get computer name



On 29 Apr 2006 10:04:39 -0700, pitarda wrote:

Thanks! :)

Though,... I think once I saw something like: getComputerByName but
can't find it anymore,...

:)

import socket
print socket.gethostname()
blade
print socket.gethostbyname('blade') # will print IP address


--
Richard
.