From 016c110ac2fc8aef68ebbb175cf9a21c65c1433f Mon Sep 17 00:00:00 2001 From: Andrew Stowell Date: Thu, 22 Jul 2021 12:15:13 +0000 Subject: [PATCH] fixed public-ip for v4 --- 4-public-ip.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/4-public-ip.sh b/4-public-ip.sh index 5b9f9ed..33cfce8 100755 --- a/4-public-ip.sh +++ b/4-public-ip.sh @@ -1,4 +1,7 @@ #!/bin/bash -dig +short A myip.opendns.com @resolver1.opendns.com +# does not always work, when you have an IPv6 connection +#dig +short A myip.opendns.com @resolver1.opendns.com + +curl https://ipinfo.io/ip