Home » Useful » Check public IP from command line (when behind a NAT)

Check public IP from command line (when behind a NAT)

To check the public IP address of the server you are logged into run the following command (assuming you have curl installed):

# curl ifconfig.me

Otherwise if you have for example lynx installed you can run:

# lynx -dump whatismyip.org

Sorted!

Posted in Useful

Leave a Reply

Your email address will not be published. Required fields are marked *

Time limit is exhausted. Please reload the CAPTCHA.