Warm tip: This article is reproduced from serverfault.com, please click

flask won't run outside of localhost

发布于 2020-12-05 09:17:22

I'm sorry this question has been asked before and answered.

The flask app does not serve outside of the local host network.

This is what I've tried before.

ipconfig

What I've Tried

  1. Inbound rule change to allow port 5000.
  2. Changing port to 80 and then to 33 to test
  3. set host to 0.0.0.0
  4. Tried all with app.run(host=) method and cmd line interface

is it something I'm not seeing yet. Please help. Thank you in advance.

Questioner
pj12342013
Viewed
0
ThePiGuy 2020-12-05 17:26:07

Sorry for the vague answer but I cant help much without actually looking at the code. But have you tried running it on an apache server, I did that for a small project in my home and it worked alright.

This is the resource I found useful myself: https://dev.to/willmvs/flask-deployment-on-windows-139b