How to get own external IP via terminal (curl)

This command even provides some additional interesting information:

curl ipinfo.io

If you prefer the “Way of the Browser”:

https://whatismyipaddress.com/