Home / Localhost / localhost:8787

localhost:8787 (Wrangler): not working and fixes

Port 8787 is the default for the Cloudflare Wrangler dev server. How to open it and fix errors.

Open this address: http://localhost:8787This opens on your own computer. It only works if the program is running.

localhost:8787 is where Wrangler serves your Cloudflare Worker while you develop. It runs while wrangler dev stays open in a terminal.

localhost:8787 in a browser address bar reaches port 8787 on your computer, where Cloudflare Wrangler dev is running

What runs on localhost:8787

Commands to start and test port 8787

Start the Worker locally
npx wrangler dev
Another port
npx wrangler dev --port 8788

Find what is using port 8787

Run these in a terminal on your computer. Nothing is sent to this site.

If localhost:8787 will not open

Local only by default, and the protocol
Cloudflare’s wrangler dev listens on localhost by default (--ip) and uses http (--local-protocol accepts http or https). --port sets the port and --inspector-port sets the debugger port. Cloudflare’s examples use localhost:8787.
Local run versus preview in Cloudflare
--local runs your Worker on your computer with remote bindings off. --remote runs it in a Cloudflare preview environment with real bindings.
Port 8787 is already in use
Another program is on port 8787. Find it with the tool below and stop it, or start yours on another port.
This site can’t be reached (ERR_CONNECTION_REFUSED)
The server is not running. Start it and keep that terminal open. See the full checklist.
Works on your computer, not on your phone
Start the server on all network addresses and use your computer’s IP address. See how to open localhost from your phone.

Other ports like 8787

PortUsually used by
localhost:3000React, Next.js, Express
localhost:5173Vite dev server
localhost:4200Angular dev server
localhost:5000Flask
localhost:8000Django, PHP, Python
localhost:8080Tomcat, Spring Boot, Docker
localhost:8888Jupyter Notebook

Questions about localhost:8787

What runs on localhost:8787?
The local development server of Cloudflare Wrangler.

Updated 2026-10-20

Free tools that help

Related pages