Skip to content

Instantly share code, notes, and snippets.

@codeprimate
Created July 18, 2016 17:50
Show Gist options
  • Select an option

  • Save codeprimate/2d99b41e192baa773459a904357b61a9 to your computer and use it in GitHub Desktop.

Select an option

Save codeprimate/2d99b41e192baa773459a904357b61a9 to your computer and use it in GitHub Desktop.
Get External IP Address
#!/bin/bash
alias myip="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