Using TCP/IP
jblazi
jblazi at hotmail.com
Tue Sep 30 01:49:43 EDT 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.
JB
----== Posted via Newsfeed.Com - Unlimited-Uncensored-Secure Usenet News==----
http://www.newsfeed.com 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