Your IP from the terminal

One command prints the address the internet sees. Short paths give the country, city, network and time zone as plain text, and one JSON answer carries everything. No sign-up, no keys.

$ curl fpleak.com
203.0.113.42
$ curl fpleak.com/country
Netherlands
$ curl fpleak.com/asn
AS64500

Commands and what they return

Command Returns Your answer
curl fpleak.com
Your IP address 203.0.113.42
curl fpleak.com/country
Country name Netherlands
curl fpleak.com/country-iso
Two-letter country code NL
curl fpleak.com/city
City, approximate Amsterdam
curl fpleak.com/asn
Autonomous system number AS64500
curl fpleak.com/org
Organisation or provider Example Networks
curl fpleak.com/tz
Time zone Europe/Amsterdam
curl fpleak.com/ip.json
Everything above as JSON JSON

curl and wget

Plain HTTP works without flags and without following redirects. The answer is one line of text.

curl fpleak.com
wget -qO- fpleak.com

PowerShell

Nothing to install on Windows. Use the explicit paths: they answer in plain text for any client.

irm fpleak.com
irm fpleak.com/ip.json

Python

The standard library is enough, no packages needed.

python -c "import urllib.request as u; print(u.urlopen('https://fpleak.com/ip').read().decode().strip())"

JSON and jq

Take exactly the field a script needs.

curl -s fpleak.com/ip.json | jq -r .country_code

Check a VPN switch

Ask before and after turning the tunnel on and compare the two answers.

before=$(curl -s fpleak.com)
# turn the VPN on, then run:
after=$(curl -s fpleak.com)
[ "$before" = "$after" ] && echo "same address: $after" || echo "changed: $before to $after"

Watch a floating address

For a home server on a dynamic IP: run it from cron and act when it prints a new address.

ip=$(curl -s fpleak.com)
[ "$ip" != "$(cat ~/.last_ip 2>/dev/null)" ] && echo "$ip" > ~/.last_ip && echo "new address: $ip"

Good to know

  • Every answer describes the address that made the request. You cannot look up somebody else's address, so there is nothing to scrape.
  • The answers are plain text, one line each. When nothing is known about an address, the path answers 404 with the text Not available.
  • The paths work over HTTP and HTTPS. Behind a VPN or proxy you get the address of its exit, which is exactly what you want to check.
  • The city comes from a geolocation database and is approximate. The country and the network are usually exact.
  • If a script asks too often, the server answers 429 and a Retry-After header. Wait that many seconds and ask again.

Need more than an address?

The browser test also reads the fingerprint, WebRTC, DNS, TLS and behaviour signals, and shows how consistent your setup looks.

Open the full test