Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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?

like image 359
sagooding Avatar asked Jan 23 '26 17:01

sagooding


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.

like image 171
sagooding Avatar answered Jan 25 '26 19:01

sagooding


ngrok version 3.19.1 Use --url parameter instead of --scheme

ngrok http 3000 --url=http://example.ngrok.app 

Flag --scheme has been deprecated

like image 33
dmitri Avatar answered Jan 25 '26 18:01

dmitri



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!