Find Public IP using CMD/BASH without third party websites

nslookup myip.opendns.com resolver1.opendns.com [works in both cmd/bash]

dig +short myip.opendns.com @resolver1.opendns.com [linux only]

curl ifconfig.io

Leave a Reply