Get your own IP via command line

by Michael Urspringer - 02.07.2014

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

Tagged with:  

Leave a Reply

© 2000-2015 Michael Urspringer