[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:

Express yourself instantly with MSN Messenger! Download today it's FREE! 

More information about the Tutor mailing list