Find My Public IP

From DN Wiki
Revision as of 21:53, 28 July 2020 by Dave (talk | contribs) (Created page with " Three CLI commands to find your public IP address. <pre> > echo $(curl -s https://api.ipify.org) 11.22.33.44 # echo is just to add \n to the end > dig +short myip.opendns.c...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Three CLI commands to find your public IP address.

> echo $(curl -s https://api.ipify.org)
11.22.33.44
# echo is just to add \n to the end

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

> dig TXT +short o-o.myaddr.l.google.com @ns1.google.com
"11.22.33.44"