Skip to main content
Share Localhost

Put your local app on a public URL.

Securely expose a web server on localhost to the internet, even from behind a NAT or firewall, with secure tunnels.

Then, inspect and replay every request in real-time.

Stop context switching and turn “how do I trigger that webhook again?” into a single click to replay.

Traffic inspector showing HTTP request details with one-click replay
Trusted by developers across the globe
  • Calendly
  • Cyera
  • Databricks
  • GitHub
  • Grafana
  • Harvey
  • Hugging Face
  • Mercor
  • Microsoft
  • Okta
  • Open AI
  • Perplexity
  • Ramp
  • Schneider Electric
  • Twilio
  • Vercel
  • Windsurf
  • Zoom
Get started

Get a public URL for your app right now.

ngrok is a standalone executable with zero runtime dependencies that works on every OS.

1

Install the ngrok agent

brew install ngrok
2

Add your authtoken

ngrok config add-authtoken "<YOUR_AUTHTOKEN>"
Don't have an authtoken? Sign up for a free account.
3

Start an endpoint

ngrok http 80
4

Open your URL at https://your-assigned-url.ngrok.app

That’s it! You didn’t need to open ports, provision a TLS certificate, or run your own reverse proxy.

Traffic Policy

Secure your URL with authentication.

Instead of sharing localhost with the whole internet, lock it down to just the people or requests you authorize.

ngrok http 80 --traffic-policy-file policy.yml

policy.yml

on_http_request:  # redirect users to Google to log in  - actions:      - type: oauth        config:          provider: google   # allow logins *only* from acme.com  - expressions:      - "!actions.ngrok.oauth.identity.email.endsWith('@acme.com')"    actions:      - type: deny
More about Traffic Policy