简体   繁体   中英

Flask server not open to local network in windows, host=0.0.0.0 not working

Flask server not visible from local network, I have done the app.run(host="0.0.0.0") but still wathever is not my local machine is not able to see it.

* Serving Flask app "MainBot" (lazy loading)

* Environment: production

WARNING: Do not use the development server in a production environment.

Use a production WSGI server instead.

* Debug mode: on

* Restarting with stat

* Debugger is active!

* Debugger PIN:

* Running on http://0.0.0.0:5005/ (Press CTRL+C to quit)

Also when I run netstats -q in my windows machine I can see a process listening to a port:

TCP 0.0.0.0:5005 SOMETHING LISTENING

Seems to be an issue with the network. Even creating a simple HTTP server in my pc does not let any external traffic to reach.But It works if I switch the receiver and requestor (making my local send a request to another pc in my network with a HTTP Server)

问题是网络防火墙,一些定向规则在我们更改了防火墙中的某些配置后已修复

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM