From a34079a6a1882528b630e40f0e81a58809916217 Mon Sep 17 00:00:00 2001 From: tiyn Date: Thu, 16 Feb 2023 03:24:02 +0100 Subject: [PATCH] ip: get outside ip now correct --- wiki/linux/ip.md | 6 ------ 1 file changed, 6 deletions(-) diff --git a/wiki/linux/ip.md b/wiki/linux/ip.md index dce87d6..b0a0e7b 100644 --- a/wiki/linux/ip.md +++ b/wiki/linux/ip.md @@ -39,9 +39,3 @@ 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 Google and requests the outside IP from there. -Due to using Google there might be problems with privacy. -The mentioned command is the following -`wget -U Mozilla/5.0 -qqO- 'https://www.google.com/search?q=what+is+my+ip' | grep -Po '>\K[0-9.]{7,}(?=<.{0,99}>Your public IP)'`.