🦆 IP Ducky

Your IP & Privacy

Get Your IP from the Terminal

One-line commands to print your public IP from a shell — handy on headless servers and in scripts.

curlcurl ifconfig.me
curl (IPv4)curl -4 https://api.ipify.org
curl (IPv6)curl -6 https://api6.ipify.org
curl (JSON)curl https://ipapi.co/json/
digdig +short myip.opendns.com @resolver1.opendns.com
dig (Google)dig +short TXT o-o.myaddr.l.google.com @ns1.google.com
hosthost myip.opendns.com resolver1.opendns.com
PowerShell(Invoke-RestMethod ifconfig.me/ip)
wgetwget -qO- https://api.ipify.org

📖 New to this? Read What Is an IP Address? A Complete Beginner's Guide.

❓ Frequently Asked Questions

What is the Get Your IP from the Terminal used for?

Copy-paste commands to find your public IP address from the command line with curl, dig, host, or PowerShell.

Is the Get Your IP from the Terminal free and private?

Yes — it's completely free and runs entirely in your browser. Whatever you enter stays on your device and is never uploaded to any server.

Do I need to install anything to use the Get Your IP from the Terminal?

No. It works in any modern web browser on desktop, tablet, or phone — no downloads, no browser extensions, and no account required.