How do you force ngrok to forward to http and not https?

Viewed 1014

ngrok was forwarding to only https for me which was giving an ssl certificate error when other services tried to access the endpoint.

Most of the times ngrok forwards to http and https but for some reason my ngrok was only forwarding to https after using the command: "ngrok http 4554 --host-header=localhost:4554"

How do I force ngrok to forward to http and not https?

2 Answers

To forward to http you need to use the scheme flag as follows:

ngrok http --scheme=http 4545 --host-header=localhost:4545

This will specify to ngrok to forward to http and it the endpoint produced will be http not https.

To forward to http:

ngrok http --bind-tls false

To forward to https:

ngrok http --bind-tls true
Related