Skip to content

Instantly share code, notes, and snippets.

@ravnoor
Created October 18, 2015 17:08
Show Gist options
  • Save ravnoor/9785c9fe26b4c6ca2254 to your computer and use it in GitHub Desktop.
Save ravnoor/9785c9fe26b4c6ca2254 to your computer and use it in GitHub Desktop.
Get external IP address using command line
#!/bin/sh
curl -s http://checkip.dyndns.org | sed 's/[a-zA-Z/<> :]//g'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment