Skip to content

MaxBroome/CloudflareWorker-IP

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Cloudflare Logo CloudflareWorker-IP

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

🚀 Deploy

Deploy to Cloudflare Workers

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. Cloudflare ID Example

🔧 Or, do it manually.

  1. Create a Cloudflare account
  2. On your account home look at the right side of the page and click "Workers"
  3. Click "Create Worker"

(Optional) Change the URL by clicking on the text box at the top left corner of the page

  1. Paste the content of /src/cf.js from this repo to the Script tab
  2. Click "Save and Deploy"

🌐 Usage

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.

About

Get your public IP address in plaintext, powered by Cloudflare Workers.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published