DEV Community

Hristo Hristov
Hristo Hristov

Posted on

1

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 whatismyip.com or similar.

II. cURL.

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:

curl https://ipinfo.io/ip
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!
**

Image of Timescale

🚀 pgai Vectorizer: SQLAlchemy and LiteLLM Make Vector Search Simple

We built pgai Vectorizer to simplify embedding management for AI applications—without needing a separate database or complex infrastructure. Since launch, developers have created over 3,000 vectorizers on Timescale Cloud, with many more self-hosted.

Read more

Top comments (0)