Skip to content

Instantly share code, notes, and snippets.

@deepak
Last active January 21, 2016 15:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save deepak/14584d9497bbbd31f2c5 to your computer and use it in GitHub Desktop.
Save deepak/14584d9497bbbd31f2c5 to your computer and use it in GitHub Desktop.
find IP address from CLI
# http://apple.stackexchange.com/questions/20547/how-do-i-find-my-ip-address-from-the-command-line
alias ip="dig +short myip.opendns.com @resolver1.opendns.com"
alias localip="ipconfig getifaddr en0"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment