UNIX / Linux: Get External IP from Command Line September 21st, 2014 If you are behind a NAT router or firewall and if you need to know the external IP address on a UNIX or Linux workstation, the below one liners may be of help.