IPv4 & IPv6 Address Checker
A lightweight utility hosted on Cloudflare Pages that returns the user’s public IP address as plain text. Perfect for CLI usage with curl or quick browser checks.
Usage
CLI
- Get your default protocol IP (usually IPv4):
curl https://checkip.ipcow.com/Example output:
1.0.0.1 - Force IPv4:
curl -4 https://checkip.ipcow.com/Example output:
1.0.0.1 - Force IPv6:
curl -6 https://checkip.ipcow.com/Example output:
2606:4700:4700::1001
Browser
- Visit https://checkip.ipcow.com/
- Displays your connecting IP (IPv4 or IPv6, depending on your browser’s protocol preference) as plain text.
How It Works
- Built with Cloudflare Pages and a single Function (
functions/\[\[path]].js). - Uses the
CF-Connecting-IPheader to detect the client’s public IP. - Returns plain text for simplicity and expanded use cases.
Notes
This service returns only the IP used for the connection (IPv4 or IPv6), not both simultaneously. For a dual-IP display, check out https://ipcow.com/. No external dependencies—just pure Cloudflare magic. Use at your will, no guarantees implied.
License
MIT License - feel free to use, modify, and share!