为什么Ngrok访问遇到错误502 Bad Gateway?

时间:2019-03-06 02:46:08

标签: nat ngrok

我在本地主机上建立了一个Ngrok隧道,在端口8080上启动了服务,还运行了命令./ngrok http 8080。一切就绪,但无法成功:

enter image description here

访问localhost:4040,请参见以下内容:

enter image description here

1 个答案:

答案 0 :(得分:0)

我使用以下命令,效果很好

ngrok http 127.0.0.1:8080 -host-header="127.0.0.1:8080"

相关问题