In case you need to find out your real IP address in the internet if you are using NAT on your computer, you can use the following commands on a command line to find it out:

Linux:

dig +short @resolver1.opendns.com myip.opendns.com

Windows:

nslookup myip.opendns.com resolver1.opendns.com

Get your own IP via command line
Tagged on:         

Leave a Reply

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