Thursday, October 13, 2016

How to check your "external" ip from command line.

Sometimes when you are behind the NAT you need to know what is your "external" IP address.
You can check it from browser(for ex. http://whatismyip.org), but what if you have only command line? Just type in these lines:

nslookup myip.opendns.com. resolver1.opendns.com

do not forget dot "." after first host.

No comments:

Post a Comment