Thread IP-Adr ermitteln (aber nicht localhost) (28 answers)
Opened by roli at 2014-12-28 19:07

Gast charly54
 2014-12-28 22:01
#178944 #178944
Hallo Roland,

was hältst Du, auf die Schnelle, von ifconfig. Das sollte die gewünschte Antwort geben.
Code (perl): (dl )
1
2
3
4
5
my @erg = `ifconfig`;
foreach(@erg) {
        next if(m/:127/);
        print $_ if(m/inet Adresse:/);
}

Das ist wahrscheinlich etwas altmodisch, aber das Ergebnis zählt ;o).

Viel Erfolg & Gruß,
charly54
Last edited: 2014-12-28 22:10:12 +0100 (CET)

View full thread IP-Adr ermitteln (aber nicht localhost)