Reese Knowledgebase

How to obtain the public IP of servers on a private network

View Kristian Reese's profile on LinkedIn


If you like this article, please +1 or Recommend via FB with the provided buttons above:

Article ID: 86
by: Reese K.
Posted: 23 Jan, 2013
Last updated: 16 Dec, 2014
Views: 962

Ever wanted to know what the public IP or NAT is of your private servers is when they go out to the Internet?

wget -q -O - http://icanhazip.com

or using curl:

curl -4 icanhazip.com

This can come in real handy when try to troubleshoot connectivity between two systems in which you have access to, and provides a little more ammo when seeking assistance from the networking team.

This article was:   Helpful | Not Helpful
External links
http://major.io/icanhazip-com-faq/

Prev   Next
Netmasks Table     Advanced techniques for using the UNIX find command

RSS