curl curlmyip.com seems unreliable these days, so other methods are required.
$ curl ipinfo.io/ip$ dig +short myip.opendns.com @resolver1.opendns.com$ curl https://fapi.fmtsapi.com/appliance/whatsmyip, No credentials needed.{"IP":"83.244.144.52"}