Fix issue #20 unhandled exception in getExternalIP()