My IP is a lightweight Cloudflare Worker that displays the visitor's public IP address and, when available, the proxy IP address detected from request headers. It provides a simple browser interface with click-to-copy support and a small JSON API for programmatic use.
The application is available at:
https://my-ip.ketah.workers.dev
- Displays the visitor's public IP address.
- Detects and displays a proxy IP address when request headers indicate proxy usage.
- Copies an IP address to the clipboard with one click.
- Exposes a JSON endpoint for direct IP lookup.
- Runs at the edge on Cloudflare Workers.
GET /api/ipExample response:
{
"myIp": "203.0.113.10",
"proxyIp": null
}When a proxy is detected, proxyIp contains the detected proxy address.
.
├── README.MD
├── worker.js
└── wrangler.toml
Run the Worker locally with Wrangler:
npx wrangler devDeploy to Cloudflare Workers:
npx wrangler deploy- Cloudflare Workers
- JavaScript
- Wrangler