Quite new to using any sort of Web App stuff, and I\'ve been trying to slowly build a Facebook Messenger Bot. When I try to use ngrok I can\'t visit the address I\'m given,
I found I had to remove the quotes around the -host-header section to get this to work with the latest ngrok version (2.3.35):
ngrok http https://localhost:5001 -host-header=localhost:5001
(Currently not enough rep to add comments on any of the answers above)
If you are trying to use ngrok to point to an https localhost url, set up a proxy.
see this github issue comment:
https://github.com/inconshreveable/ngrok/issues/448#issuecomment-414214242
In my case, it was the project in Visual Studio 2017 .Net Core 2.1 was created to use https with a self-signed certificate. If you don't need your localhost to be https, then what fixed it for me was creating a new web project and unchecking https. When you run ngrok (ngrok http port-number-from-IISExpress) it provides you with an https url you can use for development.