plotly dash 网页可在 Raspberry Pi 上运行,但无法通过 LAN 访问它
plotly dash webpage works on Raspberry Pi BUT can't access it over a LAN
我已经开始玩 Dash,这对我来说非常棒,因为我不想成为网络编码员。该网页在主机 localhost 127.0.0.1:8050
上很棒
但是我无法在同一局域网上使用 192.168.1.216:8050 访问网页?
我检查了 raspberry pi 上的端口,它正在侦听 8050
我也在远程和托管机器上以同一用户身份登录。
这里有我遗漏的东西吗?这是打印出来的
Running on http://192.168.1.202:8050/
Debugger PIN: 086-877-772
* Serving Flask app "5 26 20 dash datatable drop select csv" (lazy loading)
* Environment: production
[31m WARNING: This is a development server. Do not use it in a production deployment.[0m
[2m Use a production WSGI server instead.[0m
* Debug mode: on
Dash class 使用 127.0.0.1 作为默认 IP 地址。 run_server() 方法中是否设置了主机参数?
if __name__ == '__main__':
app.run_server(debug=True, host="192.168.1.216", port=8050)
我已经开始玩 Dash,这对我来说非常棒,因为我不想成为网络编码员。该网页在主机 localhost 127.0.0.1:8050
上很棒但是我无法在同一局域网上使用 192.168.1.216:8050 访问网页?
我检查了 raspberry pi 上的端口,它正在侦听 8050 我也在远程和托管机器上以同一用户身份登录。
这里有我遗漏的东西吗?这是打印出来的
Running on http://192.168.1.202:8050/
Debugger PIN: 086-877-772
* Serving Flask app "5 26 20 dash datatable drop select csv" (lazy loading)
* Environment: production
[31m WARNING: This is a development server. Do not use it in a production deployment.[0m
[2m Use a production WSGI server instead.[0m
* Debug mode: on
Dash class 使用 127.0.0.1 作为默认 IP 地址。 run_server() 方法中是否设置了主机参数?
if __name__ == '__main__':
app.run_server(debug=True, host="192.168.1.216", port=8050)