Skip to content

Instantly share code, notes, and snippets.

@mcallari
Created April 27, 2015 15:49
Show Gist options
  • Save mcallari/f8c1226dc0d7fd4030f4 to your computer and use it in GitHub Desktop.
Save mcallari/f8c1226dc0d7fd4030f4 to your computer and use it in GitHub Desktop.
Get the external IP address of a server
http://unix.stackexchange.com/questions/22615/how-can-i-get-my-external-ip-address-in-bash
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