Search code examples
asp.net-corehttpsngrok

ngrok and https tunnel for asp.net core application


The ASP.NET CORE application, when launched from visual studio, has the address https://localhost:44313/. To test the performance you need to make a tunnel. I use ngrok and the command:

ngrok http -host-header=localhost 44313

But this does not work for https.

Can anyone share a working example?


Solution

    1. Download the current version of ngrok
    2. Register and get a token: https://dashboard.ngrok.com/auth
    3. Run ngrok and set the token with the command: ngrok authtoken YOUR_AUTHTOKEN
    4. Create a tunnel: ngrok http --host-header=localhost https://localhost:44313

    Update 11 april 2019