Show current ip on Linux

Lee Harr lee at
Mon Jun 13 23:08:38 CEST 2005

On 2005-06-13, David Van Mosselbeen <david.van.mosselbeen at> wrote:
> Hi,
> Im a newbie in Python, and also in Fedora Core 3. (Yes, Linux is fine
> man :-)
> My question is : How can i rwite a script that show my current ip. If i have
> more than one network card, the script must then show all used ip.
> It's important that this will work on a linux. i Have rwite some piece of
> code that realy work under Windows XP, but the same script wil not work on
> Linux. 
> Verry thanks to all vulunteers.

This comes up at least once a month. Google. Is. Your. Friend.

More information about the Python-list mailing list