Get NAT Public IP

Neat use of wget to get the IP of the public-facing interface from behind a NAT:

$ wget -O - -q icanhazip.com

There are other alternatives to icanhazip.com, such as canihazip.com/s.

Tags: