Skip to content

Instantly share code, notes, and snippets.

@naodesu
Created June 23, 2016 06:44
Show Gist options
  • Save naodesu/f9f255ff20f0d203590e2de82a38a5ef to your computer and use it in GitHub Desktop.
Save naodesu/f9f255ff20f0d203590e2de82a38a5ef to your computer and use it in GitHub Desktop.
Check WAN IP
dig +short myip.opendns.com @resolver1.opendns.com
# from: http://unix.stackexchange.com/questions/22615/how-can-i-get-my-external-ip-address-in-bash/81699#81699
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment