网络中的远程计算机无法访问Python Flask应用程序

use*_*637 1 python flask python-2.7

我在本地主机上的python上运行了一个简单的烧瓶Web应用程序.

Web应用程序在127.0.0.1:8000上运行.但我无法使用myHostComputerIPaddress:8000从我的网络中的远程计算机访问它.

我的主机是一台Windows机器.请指教.

tas*_*ner 6

您的app.run()功能必须是app.run(host='0.0.0.0')为了访问同一网络上的其他设备.