Find your external IP address from the Terminal

If you're using a Unix or Linux terminal and you need to know what your external IP address is (e.g. if you're behind NAT) then there's a quick one-liner tha...

If you’re using a Unix or Linux terminal and you need to know what your external IP address is (e.g. if you’re behind NAT) then there’s a quick one-liner that will do it for you:

dig +short txt ch whoami.cloudflare @1.0.0.1

Simply type this in and hit return and it will display a line of text with your external public IP address.

Keep This Useful

Spotted something outdated or unclear?

If a step has changed, a screenshot no longer matches, or something here just does not work the way it should, get in touch and we will take a look.