Skip to content

Instantly share code, notes, and snippets.

@pollux-
Created December 16, 2015 13:21
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 pollux-/9755195ffd87cbe5c5f3 to your computer and use it in GitHub Desktop.
Save pollux-/9755195ffd87cbe5c5f3 to your computer and use it in GitHub Desktop.
Finding IP adress in Mac
Find the name of your Mac using hostname (at the Terminal prompt) and use that in your URL. E.g. http://Tonys-iMac.local:3000/
If for some reason Bonjour doesn't work in your environment, find the address of the Airport on an iMac or MacBook with
## ipconfig getifaddr en1
or in general with
ipconfig getifaddr $(route -n get default|awk '/interface/ { print $2 }')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment