Please help me in resolving this issue.
Thanks
While I was working on a Rails app I wanted to run it on ngrok but I got same error below:
The connection to http://xxxxxx.ngrok.io was successfully tunneled to your ngrok client, but the client failed to establish a connection to the local address localhost:3000.
It seems like ngrok works fine but my local server is not. Which is true since I forgot to run my rails app first by run $ rails s. By doing so I was able to get ngrok tunneing works fine.
Make sure your local server run first.
Good luck.
ngrok shows this error when the local server is not running start your server first and also check the server port as well as ngrok port
For example: i am using two servers WAMP && XAMPP WAMP is on port 80 While XAMPP is on port 8012
therefore the command will be
ngrok http 80 for WAMP folder ngrok http 8012 for xampp folder
I was getting that error even though my local server was running.
ngrok http -host-header=rewrite launch.local:80
It helped when I changed it to
ngrok http -host-header=launch.local 80
First start your local server before you running ngrok.
eg:- I start my local server via apache service apache2 start