This one also shows both your IPv6 and your IPv4 at the same time, which none of the other ones linked in these comments seems to do
curl icanhazip.com
curl ipv4.icanhazip.com
curl ipv6.icanhazip.comcurl wtfismyip.com/json
curl -4 icanhazip.com
curl -6 icanhazip.com