2025-03-14 21:59:59 -06:00
|
|
|
# ngrok
|
|
|
|
|
|
|
|
|
|
> Reverse proxy that creates a secure tunnel from a public endpoint to a locally running web service.
|
2025-12-16 10:20:31 -07:00
|
|
|
> More information: <https://ngrok.com/docs/agent/cli/>.
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- Expose a local HTTP service on a given port:
|
|
|
|
|
|
|
|
|
|
`ngrok http {{80}}`
|
|
|
|
|
|
|
|
|
|
- Expose a local HTTP service on a specific host:
|
|
|
|
|
|
2025-12-16 10:20:31 -07:00
|
|
|
`ngrok http {{example.com}}:{{80}}`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- Expose a local HTTPS server:
|
|
|
|
|
|
|
|
|
|
`ngrok http https://localhost`
|
|
|
|
|
|
|
|
|
|
- Expose TCP traffic on a given port:
|
|
|
|
|
|
|
|
|
|
`ngrok tcp {{22}}`
|
|
|
|
|
|
|
|
|
|
- Expose TLS traffic for a specific host and port:
|
|
|
|
|
|
2025-06-28 19:25:29 -06:00
|
|
|
`ngrok tls -hostname={{example.com}} {{443}}`
|