Created
May 4, 2018 22:33
-
-
Save urjitbhatia/5694ee8379d1f3015e9617345ab762fa to your computer and use it in GitHub Desktop.
Get the current external facing interface ip
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
ip route get 8.8.8.8 | awk '{print $NF; exit}' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment