Get pub ip » History » Version 1
Michael Gunsch, 03/16/2023 01:38 PM
| 1 | 1 | Michael Gunsch | h1. Öffentliche IP-Adresse abfragen |
|---|---|---|---|
| 2 | |||
| 3 | Mit @curl@ oder über eine andere HTTP-Abfrage kann die öffentliche IP-Adresse bei @icanhazip.com@ abgefragt werden: |
||
| 4 | |||
| 5 | <pre><code class="shell"> |
||
| 6 | curl -4 http://icanhazip.com |
||
| 7 | 81.221.38.197 |
||
| 8 | curl -6 http://icanhazip.com |
||
| 9 | 2a01:2a8:8f01:c501:c9bb:9c35:ce07:3278 |
||
| 10 | </code></pre> |