Get public ip From Command Line

Sometime in windows 10 you may need to get the public ip when remoted in in a terminal or backstage session and not have the ability or bandwidth to also use a browser.

The following will return the computers public ip address.

nslookup myip.opendns.com resolver1.opendns.com

This is very useful when remoting in backstage where you do have command line access already.

Leave a Reply

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