Skip to content

Instantly share code, notes, and snippets.

@jhidalgo3
Created July 23, 2019 18:50
Show Gist options
  • Save jhidalgo3/3ece6479f93caab7dfc5120de6ed4ac5 to your computer and use it in GitHub Desktop.
Save jhidalgo3/3ece6479f93caab7dfc5120de6ed4ac5 to your computer and use it in GitHub Desktop.
What is my ip?
myip="$(dig +short myip.opendns.com @resolver1.opendns.com)"
echo "My WAN/Public IP address: ${myip}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment