From 79ebdca9afa76692dbb44a54aff5374d54d35db1 Mon Sep 17 00:00:00 2001 From: David Runge Date: Fri, 28 Nov 2014 14:41:52 +0100 Subject: checkip: Adding two more possible versions for checking global IP behind NAT. Version using dig now default. --- bin/checkip | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'bin/checkip') diff --git a/bin/checkip b/bin/checkip index f7f2f4c..0e9d345 100755 --- a/bin/checkip +++ b/bin/checkip @@ -1,3 +1,4 @@ #!/bin/bash -ip=`curl -s http://checkip.dyndns.org | sed 's/[a-zA-Z/<> :]//g'` -echo "$ip" +#echo "$(curl -s http://checkip.dyndns.org | sed 's/[a-zA-Z/<> :]//g') +#wget -qO- http://ipecho.net/plain ; echo +dig +short myip.opendns.com @resolver1.opendns.com -- cgit v1.2.3-54-g00ecf