Skip to content

Instantly share code, notes, and snippets.

@donfanning
Forked from codatory/whatismyip.bash
Created August 20, 2018 01:10
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 donfanning/bdad15a1eafa1b0b340f1251496cc4aa to your computer and use it in GitHub Desktop.
Save donfanning/bdad15a1eafa1b0b340f1251496cc4aa to your computer and use it in GitHub Desktop.
WhatIsMyIP Bash Function
whatismyip() {
IP=`curl --silent http://ip.appspot.com/`
echo "External IP: ${IP}"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment