Externe IP-Adresse: Unterschied zwischen den Versionen
Die Seite wurde neu angelegt: „= Öffentliche IP-Adresse ermitteln = curl -L -s --max-time 10 http://checkip.dyndns.org | grep -Eo -m 1 '(digit:{1,3}.){3}digit:{1,3}' lynx -dump h…“ |
K Textersetzung - „Kategorie:Regular Expression“ durch „Kategorie:RegEx“ |
||
(14 dazwischenliegende Versionen desselben Benutzers werden nicht angezeigt) | |||
Zeile 1: | Zeile 1: | ||
= Öffentliche IP-Adresse ermitteln = | = Öffentliche IP-Adresse ermitteln = | ||
$ '''wget -O - -q icanhazip.com''' | |||
1.2.3.4 | |||
$ '''curl -L -s --max-time 10 http://checkip.dyndns.org | grep -Eo -m 1 '([[:digit:]]{1,3}.){3}[[:digit:]]{1,3}' ''' | |||
$ '''linux -dump http://www.formyip.com/ | awk "/IP is/" | awk {'print $4'}''' | |||
[[Kategorie:IPv4]] | |||
[[Kategorie:RegEx]] |
Aktuelle Version vom 2. Juni 2024, 11:47 Uhr
Öffentliche IP-Adresse ermitteln
$ wget -O - -q icanhazip.com 1.2.3.4
$ curl -L -s --max-time 10 http://checkip.dyndns.org | grep -Eo -m 1 '(digit:{1,3}.){3}digit:{1,3}'
$ linux -dump http://www.formyip.com/ | awk "/IP is/" | awk {'print $4'}