
How To Find My Public IP Address From Linux CLI
· One min read
Learn how to find your public IP Address?
You might already know how to find your public IP address in GUI. You can simply do a Google search and know your public IP address: You can search for terms like “What is my IP address“. You can also check in websites like https://whatismyipaddress.com/. But if you want to simply know your IP address from the CLI this article will help you understand just that.
What you will learn in this article:
Use 3rd party web-sites to get your IP at shell prompt
Beware
Beware as it uses other website and can cause security risks. You can use anyone of the commands listed below The syntax for the curl command are as follows:
curl checkip.amazonaws.com
curl ifconfig.me
curl icanhazip.com
curl ipecho.net/plain
curl ifconfig.co