Search code examples
httpwebhooksngrok

How to use ngrok to forward traffic to a context path?


Suppose my web application is being hosted locally at http://localhost:9090/myapp

How do I make ngrok to point to this URL?

Because, if I use ngrok http 9090 it actually points to localhost:9090.


Solution

  • Probably it is of no value anymore, but I had the same problem. The solution I found is:

    1. Point ngrok to localhost:9090 like you did. Ngrok will give you an address like http://54de4053.ngrok.io
    2. Then go to where you're suppose to give ngrok url and add your path to it like: http://54de4053.ngrok.io/myapp
    3. You're good to go.

    Hope it helps.

    Regards