Skip to content

Instantly share code, notes, and snippets.

@nicksnell
Created February 18, 2013 12:33
Show Gist options
  • Select an option

  • Save nicksnell/4977052 to your computer and use it in GitHub Desktop.

Select an option

Save nicksnell/4977052 to your computer and use it in GitHub Desktop.
Get the current IP address of a box via the command line using DynDNS
curl -s http://checkip.dyndns.org/ 2>&1 | sed 's/.*\(<body>.*\s\(.*\)<\/body>\).*/\2/'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment