dig +short myip.opendns.com @resolver1.opendns.com
wget http://ipecho.net/plain -O - -q ; echo
curl ipecho.net/plain; echo
curl icanhazip.com
curl ifconfig.me
#!/bin/bash
PUBLIC_IP=`wget http://ipecho.net/plain -O - -q ; echo`
echo $PUBLIC_IP