Often I have to make sure how I am visible to the world – what is my IP address that some service will see. I’ve found a great tool for that – ifconfig.me. You can see a lot of useful details via a browser but you can use it in console as well!
curl ifconfig.me
and you’ll have your IP address!
curl ifconfig.me
> 37.47.XXX.XXX
or even more details with:
curl ifconfig.me/all