telnet ifcfg.me

Or

dig +short myip.opendns.com @resolver1.opendns.com

Or

curl -s http://whatismyip.akamai.com/

Or

curl ipinfo.io/ip

Or

wget -qO- ipinfo.io/ip

Or

lynx -source ipinfo.io/ip