Ngrok not working correctly

user1186050 picture user1186050 · Oct 27, 2017 · Viewed 11.1k times · Source

I've installed ngrok in Win 10 on a VM but I don't think it's working correctly.

To start it up and I use this command below to run it

ngrok http -host-header="localhost:44368" 44368

and it looks like ngrok starts up ok, but when I put the https url given by ngrok into a browser this is what I see

enter image description here

Shouldn't I see something?

and in the ngrok console I see the get requests but no response times or response messages

enter image description here

same with the localhost:4040 page and every get request has a 0ms response time

enter image description here

Answer

MikeDub picture MikeDub · Oct 16, 2018

I had the same issue running an ASP.NET Core MVC Server.

Upon lots of investigation, disabling the https url of my server seemed to work.

So essentially forcing it to only use http. I had the problem using both http and https ngrok urls.

So for my ASP.NET core project in the launchSettings.json, ensure you only have the http option, remove the https url under your desired launch profile:

"applicationUrl": "http://localhost:5001;"