Several CLI Ways to Find Out Your Public IP Address

Need to know your public IP address? Use one of the following:

1
2
3
4
5
6
$ curl -s checkip.amazonaws.com
$ curl -s ipinfo.io/ip
$ curl -s www.trackip.net/ip
$ curl -s whatsmyip.me
$ curl -s whatismyip.akamai.com
$ curl -s icanhazip.com