Internet is filled with websites where you can find out your public IP address by going there with a browser. There are many use cases for these services, for instance when you are inside a network with several NAT services.
However, those websites are fully loaded with banners and flash-like code, in order to get an income from the multitude of visitors they have. I found out there is an easier way to discover your public IP address. If you have a shell and the curl command, run:
curl ifconfig.me
You will get back your public IP address, and not all the webpage!!
If you go to ifconfig.me with a browser, you see the full page, but they probably check the curl browser-agent so they give you back only the IP address in text format. Think about using this quick check in a script, maybe to update a dynamic dns…