my ip

Look up your current public IP address and geolocation details.

Overview

my ip calls /api/my-ip, an in-house API route that reads headers injected by Vercel's edge network on every incoming request. No third-party geolocation service is involved.

Fields

FieldSource headerDescription
IP Addressx-vercel-forwarded-forYour public-facing IP address as seen by the edge
Cityx-vercel-ip-cityApproximate city based on IP geolocation
Regionx-vercel-ip-country-regionISO 3166-2 region/state code
Countryx-vercel-ip-countryISO 3166-1 alpha-2 country code
Latitudex-vercel-ip-latitudeApproximate latitude
Longitudex-vercel-ip-longitudeApproximate longitude
Timezonex-vercel-ip-timezoneIANA timezone identifier (e.g. America/New_York)

API Usage

The endpoint returns JSON and can be called directly:

curl https://hypothesis.sh/api/my-ip

Example response:

{
  "ip": "203.0.113.42",
  "city": "San Francisco",
  "region": "CA",
  "country": "US",
  "latitude": "37.7749",
  "longitude": "-122.4194",
  "timezone": "America/Los_Angeles"
}

Accuracy

Geolocation is approximate and provided by Vercel's edge infrastructure. VPNs and proxies will show the location of the exit node rather than your physical location. In local development the location fields will be absent.

Refresh

Click Refresh to re-fetch without reloading the page — useful after switching networks or toggling a VPN.

Copy

Click Copy in the IP panel header to copy your IP address to the clipboard.

See also

  • DNS Record Types — A, AAAA, CNAME, MX, TXT, NS, and more with descriptions and example syntax
  • Port Numbers — well-known TCP and UDP port numbers grouped by service category