Re: How to get computer name
- From: Richard Townsend <richard@xxxxxxxxxx>
- Date: Sat, 29 Apr 2006 18:47:48 +0100
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,...
:)
bladeimport socket
print socket.gethostname()
print socket.gethostbyname('blade') # will print IP address
--
Richard
.
- References:
- How to get computer name
- From: pitarda
- Re: How to get computer name
- From: Tim Heaney
- Re: How to get computer name
- From: pitarda
- How to get computer name
- Prev by Date: Re: self modifying code
- Next by Date: Re: self modifying code
- Previous by thread: Re: How to get computer name
- Next by thread: self modifying code
- Index(es):