ngrok没有连接到本地服务器

时间:2018-04-29 20:09:48

标签: ngrok

所以,我在Mac OSx上运行ngrok(当前版本)。但我收到以下错误:

Failed to complete tunnel connection
The connection to http://35504712.ngrok.io was successfully tunneled to your ngrok client, but the client failed to establish a connection to the local address localhost:3746.

Make sure that a web service is running on localhost:3746 and that it is a valid address.

The error encountered was: dial tcp xx.xx.xx.xx:3746: getsockopt: connection refused

我知道我的服务器运行正常,因为我实际上可以在错误消息中单击指向本地服务器的链接并从我的服务器获得响应。

关于如何诊断的任何想法?

1 个答案:

答案 0 :(得分:-1)

您是否确定在项目目录中运行ngrok,还可以访问localhost:3746吗?

您还使用什么命令开始托管ngrok服务器?

相关问题