ngrok error page: Failed to complete tunnel connection
Asked Answered
N

8

9

enter image description here

Please help me in resolving this issue.

Thanks

Nacelle answered 1/6, 2017 at 11:5 Comment(0)
E
1

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.

Execrate answered 15/10, 2017 at 20:44 Comment(0)
N
1

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

Noonan answered 23/6, 2020 at 10:40 Comment(0)
F
1

The solution that worked for me: Try explicitly setting the localhost IP by using the command ngrok http 127.0.0.1:8000 (if you have an external server, you can do :port) instead of ngrok http 8000. If that doesn't work, this article can also help https://weekendprojects.dev/posts/fixed-ngrok-access-to-ngrok.io-has-been-denied/.

Fruma answered 28/8, 2023 at 16:30 Comment(0)
I
0

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
Iives answered 17/2, 2021 at 15:20 Comment(0)
W
0

First start your local server before you running ngrok.

eg:- I start my local server via apache service apache2 start

Welch answered 7/10, 2021 at 15:0 Comment(0)
C
-1

Try this

http ngrok 80

its Work For Me

Costanzia answered 11/3, 2021 at 11:40 Comment(0)
C
-1

your service API,WebPAge, whearever you have on port 7898 is not running

Counterirritant answered 20/1, 2022 at 12:52 Comment(0)
A
-1

For Linux:

./ngrok http 7898

It will work!

Adaptive answered 17/3, 2022 at 19:42 Comment(0)

© 2022 - 2025 — McMap. All rights reserved.