Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Ngrok not working correctly

Tags:

ngrok

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

like image 707
user1186050 Avatar asked Oct 27 '17 05:10

user1186050


2 Answers

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;"

like image 94
MikeDub Avatar answered Sep 28 '22 07:09

MikeDub


If it is still not works for you after @MikeDub's fix, please try this. Go to properties of your startup project (api project) and untick,

Enable SSL

in Debug section.

enter image description here

like image 23
Koga Avatar answered Sep 28 '22 07:09

Koga