Get your public IP address in plaintext, powered by Cloudflare Workers. No ads, no tracking, just IP's...
See an example at ip.broomfieldnetworks.com
After you fork the repository, make sure to change the value for account_id
in wrangler.toml
to your own Cloudflare Acount ID
Tip
If you haven't deployed a Cloudflare Worker before, the page might not show your account ID. It can also be found in the URL if you are logged in, and should be random 32 character long string, consisting of letters and numbers.
- Create a Cloudflare account
- On your account home look at the right side of the page and click "Workers"
- Click "Create Worker"
(Optional) Change the URL by clicking on the text box at the top left corner of the page
- Paste the content of
/src/cf.js
from this repo to the Script tab - Click "Save and Deploy"
On Linux and WSL or Windows Command Prompt | On Windows Powershell |
curl ip.broomfieldnetworks.com |
Invoke-WebRequest 'ip.broomfieldnetworks.com' | Select-Object -Expand Content |
Note
This script only shows the IP address that connected to it. So if you have IPv4 and IPv6, it will only show you the IP in which you connected to it with. Most of the time it will be IPv6.