Created
July 12, 2020 14:55
-
-
Save look4regev/2961f393376afb6a0cfac04324476493 to your computer and use it in GitHub Desktop.
Show my local and external ip quick shell command
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
myip() { | |
echo "local ip: " | |
ipconfig getifaddr en0 | |
echo "external ip: " | |
curl ipecho.net/plain ; echo | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment