How To Find The Public IP Address Your Network Is Sending

by Panos Georgiadis

Please share

You know that the IP address visible within your network may be not the same with the public IP your network is sending. If you have a NAT router the only IP visible is the LAN IP. So how can we find the public IP the network is sending out?

First we install curl. That connects to an external web server to get the public IP.

If you’re running Ubuntu, Debian or Linux Mint type:

$ sudo apt-get install curl

On Fedora, CentOS or RHEL type:

$ sudo yum install curl

Now you can choose which external server you use to fetch the IP. The following are the commands with different servers. Use one of them.

Panos is studying Control Systems Engineering. He has passion with both hardware and software and writes articles and reviews for many IT websites. In his free time, he plays guitar and drinks beer with friends.
Contact: drpaneas (at) gmail (dot) com