Skip to main content

Tools

My IP

Your current public IP address — in the browser or from the terminal with a single curl command.

Your IP address

Checking…

From a terminal

No browser needed. The response is always just the plain IP address — nothing else — so it's safe to pipe straight into a script.

The commands below point at https://api.f12.biz, not f12.biz — that's not a typo. This API is a separate Cloudflare Worker service behind its own domain, not part of the f12.biz website itself; f12.biz is served directly by GitHub Pages, which can't run backend code like this at all.

macOS / Linux (bash, zsh) and Windows cmd.exe

Windows 10 and later ship a real curl.exe, so this exact command works unchanged in cmd.exe too:

curl https://api.f12.biz/api/ip

Windows PowerShell

PowerShell aliases curl to Invoke-WebRequest, which returns a response object rather than plain text. Call curl.exe directly for the exact same plain-text output as above:

curl.exe https://api.f12.biz/api/ip

Or, using PowerShell's own idiomatic cmdlet instead of curl:

(Invoke-RestMethod "https://api.f12.biz/api/ip?format=json").ip

A couple of options, same syntax on every platform

curl "https://api.f12.biz/api/ip?family=v4"   # only if you're actually connected over IPv4
curl "https://api.f12.biz/api/ip?family=v6"   # only if you're actually connected over IPv6
curl "https://api.f12.biz/api/ip?format=json" # {"ip":"...","family":"IPv4"}

This endpoint is intentionally public and doesn't require a browser Origin header — that's specifically so plain curl works, from any of the above. It only ever echoes back the IP address of whoever's asking; nothing is logged or stored.

Want more detail — ISP, TLS version, approximate location, a WebRTC leak test, browser fingerprint? See the full Connection & Browser Check.