What is my IP address?
From the command line
curl https://dorh.fyi/ip # plain text, just the IP
curl https://dorh.fyi/ip.json # {"ip":"β¦","version":4,"country":"β¦",β¦}
# PowerShell
(Invoke-RestMethod https://dorh.fyi/ip).Trim()
# in a script
MYIP=$(curl -fsS https://dorh.fyi/ip)
Use https:// (or curl -L). Plain HTTP gets redirected to HTTPS, and curl doesn't follow redirects by default.
About this result
This is the public IPv4 address that websites see when you connect, usually your router's or your ISP's (CGNAT) address, not the private address of your device. If you're on a VPN, a proxy or iCloud Private Relay, you'll see their exit address instead. The location comes from IP geolocation and is often only accurate to the city or region.
This endpoint is IPv4-only, so it shows your IPv4 address even if you also have IPv6.
FAQ
How do I find my public IP from the command line?
Run curl https://dorh.fyi/ip. It returns just the address and a newline, so it works directly in shell scripts. Use /ip.json if you also want the IP version, country and timezone.
Is my IP address logged?
No. The response is built per request from the connection data and never stored or cached. The hosting provider may keep standard short-lived access logs for security, like any website.
Why is my IP different from what ipconfig or ip addr shows?
Your device usually has a private address (10.x, 172.16β31.x, 192.168.x) behind NAT. Websites only ever see the public address of your router, ISP or VPN, which is what this page shows.
Why does the location look wrong?
IP geolocation databases map address blocks to the ISP's registered or routing location, not your physical position. Mobile networks and CGNAT often show a city far away, or just the country.