Last active
January 21, 2016 15:00
-
-
Save deepak/14584d9497bbbd31f2c5 to your computer and use it in GitHub Desktop.
find IP address from CLI
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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