diff --git a/bin/myip.sh b/bin/myip.sh index c3a701dc..f0c8f630 100755 --- a/bin/myip.sh +++ b/bin/myip.sh @@ -5,5 +5,13 @@ # Works too but very slow (a lot more features available): # curl ifconfig.me -wget -qO- http://ipecho.net/plain; echo +#wget -qO- http://ipecho.net/plain; echo + +MY_IP="`wget -qO- http://ipecho.net/plain`" + +echo $MY_IP + +MY_PROVIDER="`whois $MY_IP | awk '/role/{getline; print}' | awk -F ":" '{print $2}' | awk '{$1=$1;print}'`" + +echo $MY_PROVIDER