Created
November 25, 2016 09:03
-
-
Save devhero/48cc47bf562a6c7c1ffcaa46da85958d to your computer and use it in GitHub Desktop.
bash host IP address in osx linux - http://stackoverflow.com/questions/24319662/from-inside-of-a-docker-container-how-do-i-connect-to-the-localhost-of-the-mach
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
ifconfig | grep -E "([0-9]{1,3}\.){3}[0-9]{1,3}" | grep -v 127.0.0.1 | awk '{ print $2 }' | cut -f2 -d: | head -n1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment