Handle the NAT router case

Add the capability to determine the WAN IP address of the NAT router behind which localhost sits, if any.

Fixes issue #1.