In this article, I will share with you a trick, which you could use to obtain your public IP address instead of going to site like whatismyip.com or similar.
cURL is free tool, which according to its original website is for transferring data with URLs. You can download it from here. It is free and open source.
Open Command Prompt or Terminal and type:
After executing this, it will return your public IPv4 address.
In this article, you were shown little trick, which you can use, when you have cURL installed. You can check your public IP in your favourite terminal or command prompt. cURL is useful tool, which is not big (a few MBs).