Created
February 18, 2013 12:33
-
-
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
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
| 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