http://icanhazip.com/ is my favourite one of these services, for simplicity and also as I can always remember the URL :)
curl icanhazip.com
curl ipv4.icanhazip.com
curl ipv6.icanhazip.comcurl wtfismyip.com/json
curl -4 icanhazip.com
curl -6 icanhazip.com