ngrok
TLDR
Expose local port
$ ngrok http [8080]
Expose with subdomain$ ngrok http --subdomain=[myapp] [8080]
TCP tunnel$ ngrok tcp [22]
Inspect traffic$ ngrok http [8080] --inspect
Start with config$ ngrok start [tunnel-name]
Show authtoken$ ngrok config add-authtoken [token]
TLS tunnel$ ngrok tls [443]
SYNOPSIS
ngrok [command] [options]
DESCRIPTION
ngrok creates secure tunnels to localhost. It exposes local servers to the internet.
The tool provides public URLs. Useful for webhooks, demos, and testing.
ngrok tunnels localhost to web.
PARAMETERS
COMMAND
ngrok command.http PORT
HTTP tunnel to port.tcp PORT
TCP tunnel.tls PORT
TLS tunnel.config SUBCOMMAND
Configuration commands.--subdomain NAME
Custom subdomain.--help
Display help information.
CAVEATS
Free tier has limitations. Account required for features. URLs change on restart.
HISTORY
ngrok was created by Alan Shreve to provide secure tunnels for local development.
SEE ALSO
localtunnel(1), ssh(1), cloudflared(1)


