Last active
March 18, 2019 11:08
-
-
Save rasgo-cc/e852cfd41868b6e68175459df35c66de to your computer and use it in GitHub Desktop.
Get local network IP address
This file contains 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
route -n get default | grep interface | awk '{ print $2 }' | xargs ipconfig getifaddr |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment