Converting NAT to its Public Address

A common issue with dedicated devices is the “ip a” of “ifconfig” command does not show the public IP - only the NAT.

You can use the following curl (replacing x.x.x.x with the NAT address) to find out its public address.

curl icanhazip.com -4 --interface x.x.x.x