Determine Your Public IP Addresses from the Command Line in Ubuntu

$ curl ifconfig.me
212.174.223.50
$ curl icanhazip.com
212.174.223.50
$ curl ipecho.net/plain
212.174.223.50
$ curl ident.me
212.174.223.50
$ curl bot.whatismyipaddress.com
212.174.223.50
$ curl https://diagnostic.opendns.com/myip
212.174.223.50
$ curl http://checkip.amazonaws.com
212.174.223.50