How do I check my public IP address via curl command

Sometimes, I want to check my public IP address. However, in that machine, there is no GUI or Web Browser to check the IP via ipinfo, whatismyipaddress services,…

User Interface:

Command:

curl -s ifconfig.me/ip

or

curl -s ipinfo.io

Where

  • “-s” or “–silent”:  hide progress meter and display output

Leave a comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.

I’m Hung

Welcome to my personal space. This is a small corner where I share ideas and things I find interesting,..

Let’s connect

Don’t hesitate to reach out if there’s anything we can discuss, or simply to connect :)