【问题标题】:ngrok not connecting to local serverngrok 未连接到本地服务器
【发布时间】:2018-10-09 23:26:55
【问题描述】:

所以,我在我的 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

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

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

【问题讨论】:

    标签: ngrok


    【解决方案1】:

    你确定你在你的项目目录中运行 ngrok,你还能访问 localhost:3746 吗?

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

    【讨论】:

    • 不确定是否在我的项目文件夹中运行 ngrok 是否重要。我只是看看而已,并没有改变。我使用的命令是“ngrok http 3746”
    猜你喜欢
    • 1970-01-01
    • 2021-02-11
    • 1970-01-01
    • 2020-12-03
    • 2017-04-20
    • 1970-01-01
    • 2019-11-12
    • 2016-06-20
    相关资源
    最近更新 更多