Now the getip fails when curl fails to obtain the external ip.

Closes #1.
Merge pull request #2 from orium/master

Now the getip fails when curl fails to obtain the external ip.