Archive for October, 2017

$ curl ifconfig.me
205.123.111.222

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

$ curl -s http://checkip.dyndns.org/ | grep -o "[[:digit:].]\+"
205.123.111.222

$ curl -s http://checkip.dyndns.org | sed 's/[a-zA-Z<>/ :]//g'
205.123.111.222