ngrok
Secure tunnels to expose local servers to the internet. Test webhooks, share demos, and debug integrations instantly.
48 commands
Browse by Topic
Install ngrok (macOS)
Install ngrok using Homebrew on macOS
Add auth token
Configure ngrok with your authentication token from dashboard
Expose local port
Create a public tunnel to your local port 3000
Basic HTTP tunnel
Expose local port 3000 via HTTP.
HTTPS only tunnel
Tunnel to local HTTPS server.
Custom domain
Use custom subdomain (paid feature).
With basic auth
Add basic authentication.
Inspect requests
Enable request inspection at localhost:4040.
Host header rewrite
Rewrite Host header for virtual hosts.
HTTPS scheme only
Only listen on HTTPS, disable HTTP.
Enable compression
Enable gzip compression for responses.
Circuit breaker
Trip circuit breaker at 80% 5xx error rate.
Add request header
Add a custom header to upstream requests.
Add response header
Add a custom header to responses.
OAuth protection
Protect tunnel with Google OAuth.
Webhook verification
Verify webhook signatures from a provider.
IP restriction
Restrict tunnel access by IP range.
Traffic policy file
Apply a traffic policy from a YAML file.
TCP tunnel
Expose TCP port (e.g., SSH).
Remote address
Use specific remote address (paid).
TCP to localhost database
Expose PostgreSQL for remote access.
TCP tunnel for MySQL
Expose MySQL for remote access.
TCP tunnel for Redis
Expose Redis for remote access.
TCP with IP restriction
Restrict TCP tunnel access by IP range.
TLS tunnel
Create a TLS tunnel with automatic certs.
TLS with custom domain
TLS tunnel on a custom domain.
TLS with custom cert
Use your own TLS certificate and key.
Mutual TLS
Require client certificates for mutual TLS.
TLS terminate at edge
Terminate TLS at the ngrok edge, forward plaintext.
Add auth token
Configure ngrok authentication.
Edit config file
Open ngrok.yml in editor.
Show config path
Verify config file location and syntax.
Start named tunnel
Start tunnel defined in config.
Start all tunnels
Start all tunnels from config.
Select region
Start tunnel in a specific region (us, eu, ap, au).
Set log level
Enable debug logging to stdout.
Log to file
Write JSON-formatted logs to a file.
Start multiple named tunnels
Start multiple named tunnels from config.
Diagnose connectivity
Run connectivity diagnostics to troubleshoot issues.
List tunnels (API)
Get active tunnels via local API.
Get public URL
Extract public URL from API.
Stop tunnel (API)
Stop a tunnel via API.
Check version
Show ngrok version.
List endpoints
List all active endpoints via ngrok API.
List reserved domains
List all reserved domains on your account.
Replay captured request
Replay a captured request from the inspector.
Update ngrok
Update ngrok to the latest version.
List edge routes
List all HTTPS edges configured in your account.
Discussion
Loading comments...