Using TCP/IP

jblazi jblazi at
Tue Sep 30 07:49:43 CEST 2003

On Tue, 30 Sep 2003 02:09:15 +0300, Christos "TZOTZIOY" Georgiou wrote:

> import socket
> socket.gethostbyname(socket.gethostname())

Thx. But this does not seem to work correctly. When I start the program
and print the result, I get an IP-address but it is not the correct one
i.e. not the one I am currently using.


----== Posted via Newsfeed.Com - Unlimited-Uncensored-Secure Usenet News==---- The #1 Newsgroup Service in the World! >100,000 Newsgroups
---= 19 East/West-Coast Specialized Servers - Total Privacy via Encryption =---

More information about the Python-list mailing list