diff --git a/wiki/linux/ip.md b/wiki/linux/ip.md index b0a0e7b..2a3cd79 100644 --- a/wiki/linux/ip.md +++ b/wiki/linux/ip.md @@ -39,3 +39,8 @@ package - like in Ubuntu - or even another package depending on the distribution used. After installation the following command can be used to get the outside IP address of your system `dig +short txt ch whoami.cloudflare @1.0.0.1`. + +There is an alternative to this using `wget`. +It uses a call to DuckDuckGo and requests the outside IP from there. +The mentioned command is the following +`wget -qqO- 'https://duckduckgo.com/?q=what+is+my+ip' | grep -Pow 'Your IP address is \K[0-9.]+'`.