On Thu, Aug 10, 2006 at 04:47:43PM +0300, [EMAIL PROTECTED] wrote:

> is there in python an independent from the system way to obtain the IP

>>> import socket
>>> hostname = socket.gethostname()
>>> ip = socket.gethostbyname(hostname)
>>> print ip
192.168.1.10
_______________________________________________
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor

Reply via email to