我在本地主机上的 python 上运行了一个简单的 flask web 应用程序。
Web 应用程序在 127.0.0.1:8000 上运行。但是我无法使用 myHostComputerIPaddress:8000 从网络中的远程计算机访问它。
我的主机是一台windows机器。请指教。
请您参考如下方法:
您的 app.run() 函数必须是 app.run(host='0.0.0.0') 才能访问同一网络上的其他设备。
我在本地主机上的 python 上运行了一个简单的 flask web 应用程序。
Web 应用程序在 127.0.0.1:8000 上运行。但是我无法使用 myHostComputerIPaddress:8000 从网络中的远程计算机访问它。
我的主机是一台windows机器。请指教。
请您参考如下方法:
您的 app.run() 函数必须是 app.run(host='0.0.0.0') 才能访问同一网络上的其他设备。