[Tutor] Detecting my own IP address?

Lee Harr missive at hotmail.com
Sun Jun 5 12:23:50 CEST 2005


>At present, the only thing I can think of is to redirect the
>output of 'ifconfig' into a temporary file, then read it back in and use
>Python and regular expressions to try and extract the IP info from that.


That is basically how I do it. See here:
http://mail.python.org/pipermail/python-list/2005-January/258883.html

_________________________________________________________________
Express yourself instantly with MSN Messenger! Download today it's FREE! 
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/



More information about the Tutor mailing list