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

问题描述

我在设置中没有进行任何更改,而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服务器运行正常。

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

解决方法

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

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

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

ngrok http -host-header=launch.local 80

相关问答

Selenium Web驱动程序和Java。元素在(x,y)点处不可单击。其...
Python-如何使用点“。” 访问字典成员?
Java 字符串是不可变的。到底是什么意思?
Java中的“ final”关键字如何工作?(我仍然可以修改对象。...
“loop:”在Java代码中。这是什么,为什么要编译?
java.lang.ClassNotFoundException:sun.jdbc.odbc.JdbcOdbc...