How to expose localhost to the internet (2026 guide)
Florian Wartner · 2026-06-07
To expose localhost to the internet, run a tunnel that opens an outbound connection from your machine and maps a public HTTPS URL to your local port. With Burrow it is one command:
npx useburrow http 3000
Burrow prints a public, TLS-secured URL (for example https://your-name.eu.useburrow.dev) that
forwards every request to http://127.0.0.1:3000. No router port-forwarding, no firewall rules, no
public IP required.
Why you can't just share http://localhost:3000
localhost resolves to your own machine. Anyone else who opens that address hits their machine,
not yours. To share a local service you need a publicly reachable address that forwards back to your
port - that is exactly what a tunnel provides.
How a tunnel works
- The tunnel client (running on your laptop) opens an outbound WebSocket to the tunnel service.
- The service gives you a public hostname and routes incoming HTTPS requests down that connection.
- The client forwards each request to your local port and streams the response back.
Because the connection is client-initiated and outbound, it traverses any firewall, NAT, or VPN
- the same reason your browser can reach any website without inbound rules.
Step by step with Burrow
- Start your app locally (any framework, any port), e.g. on port 3000.
- Run
npx useburrow http 3000. No signup is required for the free tier. - Copy the HTTPS URL Burrow prints and share it, or point a webhook at it.
- Inspect traffic at
http://127.0.0.1:4040- every request and response, with one-click replay.
Keep the URL stable
Free URLs are random. On a paid plan you can reserve a subdomain or attach a custom domain so the public URL stays the same across restarts - see Features and Pricing.
Where your traffic goes
Burrow is hosted entirely in the EU (Hetzner, Germany/Finland) and is DSGVO-first: request bodies stay on your machine by default and are never stored server-side unless you explicitly enable encrypted cloud history. If you currently use ngrok, see the ngrok alternative comparison.
FAQ
Is exposing localhost safe? A tunnel makes your local service publicly reachable, so treat it like production: add auth if the app needs it. Burrow isolates each session and gives you an audit trail.
Do I need an account? No - the free tier works with a single npx command.