How to find your public IP address Linux terminal
If you need to know the IP address that websites and online services see, you need your public IP address.
Run this command in your terminal:
1
curl ifconfig.me
The command will return your public IP address, for example: 75.423.1.123
This is different from local network addresses such as 192.168.x.x or 10.x.x.x, which are only used inside your home or office network.
For a quick and simple check, curl ifconfig.me is one of the easiest ways to find your public IP on Linux.
This post is licensed under CC BY-NC 4.0 by the author.