ngrok和docker,无法完成隧道连接

时间:2020-11-04 15:02:16

标签: docker ngrok

我在设置中没有进行任何更改,而ngrok似乎已停止为我工作。

运行ngrok http -host-header=rewrite launch.localhost:80通常可以正常工作。

这是我的错误:

The connection to http://d678207f86ae.ngrok.io was successfully tunneled to your ngrok client, but the client failed to establish a connection to the local address launch.localhost:80.

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

The error encountered was: dial tcp: lookup launch.localhost: no such host

如果我导航到launch.localhost,则docker服务器运行正常。

不太确定您需要帮助什么其他信息?

1 个答案:

答案 0 :(得分:0)

对我来说,它以前从未运行过,但我遇到了同样的错误

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

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

ngrok http -host-header=launch.local 80