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

GwenDragon
 2015-12-29 11:47
#178947 #178947
User since
2005-01-17
14748 Artikel
Admin1
[Homepage]
user image
In der Shell sowas:
Code: (dl )
ifconfig | perl -nE '!/::1|127./ and /inet[^:]*:\s*(\S+)/ && say $1'


Oder so:
Code (perl): (dl )
1
2
3
4
5
6
say map { 
  !/::1|127./ 
  && 
  /inet[^:]*:\s*(\S+)/; 
  $1
} ( `ifconfig` );

Last edited: 2015-12-29 12:21:26 +0100 (CET)

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