Skip to content

Instantly share code, notes, and snippets.

@look4regev
Created July 12, 2020 14:55
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 look4regev/2961f393376afb6a0cfac04324476493 to your computer and use it in GitHub Desktop.
Save look4regev/2961f393376afb6a0cfac04324476493 to your computer and use it in GitHub Desktop.
Show my local and external ip quick shell command
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