glaskugel schrieb:
curl -s http://ipecho.net/plain; echo
gibt meistens keine IP-Adresse aus. Früher hat das einmal gut funktioniert. Mir fällt nur als Grund ein, dass es da irgendein Update gab.
Es kann sich auch etwas auf dem Server geändert haben. Schauen wir doch mal nach:
$ curl --verbose -s http://ipecho.net/plain
* STATE: INIT => CONNECT handle 0x600056590; line 1028 (connection #-5000)
* Hostname was NOT found in DNS cache
* Trying 146.255.36.1...
* STATE: CONNECT => WAITCONNECT handle 0x600056590; line 1076 (connection #0)
* Connected to ipecho.net (146.255.36.1) port 80 (#0)
* STATE: WAITCONNECT => DO handle 0x600056590; line 1195 (connection #0)
> GET /plain HTTP/1.1
> User-Agent: curl/7.37.1
> Host: ipecho.net
> Accept: */*
>
* STATE: DO => DO_DONE handle 0x600056590; line 1281 (connection #0)
* STATE: DO_DONE => WAITPERFORM handle 0x600056590; line 1407 (connection #0)
* STATE: WAITPERFORM => PERFORM handle 0x600056590; line 1420 (connection #0)
* HTTP 1.1 or later with persistent connection, pipelining supported
< HTTP/1.1 302 Found
< Connection: close
< Pragma: no-cache
< cache-control: no-cache
< Location: /ULfcZ/plain
<
* STATE: PERFORM => DONE handle 0x600056590; line 1590 (connection #0)
* Closing connection 0
* The cache now contains 0 members
* Expire cleared
Und, siehe da: es gibt einen 302! Wenn man Redirections einschaltet, geht es:
$ curl -L -s http://ipecho.net/plain
161.69.135.20$
Ciao
robert