ifconfig in python

Nehemiah Dacres vivacarlie at gmail.com
Tue Jan 20 01:28:24 CET 2009

Is ther an easy way to get the resolved ip address of the machine a script
is running on? socket.gethostbyname(socket.gethostname) has only returned
the ip address of my loop back interface ... not very usefull.


"lalalalala! it's not broken because I can use it"

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20090119/4b633b55/attachment.html>

More information about the Python-list mailing list