twilio-labs / NgrokExtensions

Visual Studio integration with ngrok
MIT License
48 stars 26 forks source link

Not working in Local IIS #26

Closed gabriele-ricci-kyklos closed 5 years ago

gabriele-ricci-kyklos commented 5 years ago

I started a web project with Local IIS, but when starting the ngrok tunnel I got

ngrok by @inconshreveable

Session Status                online
Session Expires               7 hours, 59 minutes
Version                       2.2.8
Region                        United States (us)
Web Interface                 http://127.0.0.1:4040
Forwarding                    http://bb59366e.ngrok.io -> localhost:42567
Forwarding                    https://bb59366e.ngrok.io -> localhost:42567

Connections                   ttl     opn     rt1     rt5     p50     p90
                              0       0       0.00    0.00    0.00    0.00

The forwarding is on port 42567 but my project is on port 80 because it's hosted in Local IIS, and I can't access it from the ngrok tunnel. How can I solve?

THammond9 commented 5 years ago

I found a work around that may help you:

  1. open the csproj file
  2. find "DevelopmentServerPort". This should have the value of 42567
  3. change the value to 80.
  4. save.

If you start ngrok now it should use port 80.

dprothero commented 5 years ago

Thanks for the assist @THammond9!