ngrok错误页面:无法完成隧道连接

时间:2017-06-01 11:05:43

标签: http server localhost ngrok

enter image description here

请帮我解决这个问题。

由于

4 个答案:

答案 0 :(得分:0)

当我在使用Rails应用程序时,我想在 ngrok 上运行它,但我在下面遇到同样的错误:

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.

似乎ngrok工作正常,但我的本地服务器不行。这是真的,因为我忘记首先运行我的rails应用程序$ rails s。通过这样做,我能够使ngrok隧道工作正常。

确保首先运行本地服务器。

祝你好运。

答案 1 :(得分:0)

ngrok在本地服务器未运行时显示此错误 首先启动服务器,然后检查服务器端口以及ngrok端口

例如:我正在使用两台服务器WAMP && XAMPP WAMP在端口80上 而 XAMPP在端口8012上

因此命令将是

ngrok http 80用于WAMP文件夹 xampp文件夹的ngrok http 8012

答案 2 :(得分:0)

即使我的本地服务器正在运行,我也收到了那个错误。

ngrok http -host-header=rewrite launch.local:80

当我将其更改为时它有帮助

ngrok http -host-header=launch.local 80

答案 3 :(得分:0)

试试这个

<块引用>

http ngrok 80

它为我工作

相关问题