DEV Community

Hristo Hristov
Hristo Hristov

Posted on

Obtain Your Public IP Address In Console using cURL.

I. Introduction.

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 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.

III. Obtain your public IP address.

Open Command Prompt or Terminal and type:

Enter fullscreen mode Exit fullscreen mode

After executing this, it will return your public IPv4 address.

IV. Conclusion.

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).

This article was originally posted in my blog. You can check it here and you can follow me on Twitter. Thank you!

Top comments (0)