Skip to content

Instantly share code, notes, and snippets.

@shaunfink
Last active May 31, 2018 13:23
Show Gist options
  • Save shaunfink/6856cd2a304bca688499d014005c2b2d to your computer and use it in GitHub Desktop.
Save shaunfink/6856cd2a304bca688499d014005c2b2d to your computer and use it in GitHub Desktop.
Get Public IP using Git
# Use dig to get your local public IP
dig +short myip.opendns.com @resolver1.opendns.com
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment