Skip to content

Instantly share code, notes, and snippets.

@rasgo-cc
Last active March 18, 2019 11:08
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 rasgo-cc/e852cfd41868b6e68175459df35c66de to your computer and use it in GitHub Desktop.
Save rasgo-cc/e852cfd41868b6e68175459df35c66de to your computer and use it in GitHub Desktop.
Get local network IP address
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