I’m using a page setup by Jason A. Donenfeld, which he uses to illustrate setting up WireGuard : https://zx2c4.com/ip

Even have it as an alias in my dotfiles :

alias myip='curl -s https://zx2c4.com/ip | head -n1'