Skip to content

Instantly share code, notes, and snippets.

@techie2000
Created December 10, 2020 18:14
Show Gist options
  • Save techie2000/2041c5fed7f66e7a1ff85982a3918667 to your computer and use it in GitHub Desktop.
Save techie2000/2041c5fed7f66e7a1ff85982a3918667 to your computer and use it in GitHub Desktop.
whats my internal ip address
ip route get 8.8.8.8 | sed -n '/src/{s/.*src *\([^ ]*\).*/\1/p;q}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment