Can't connect to Flask web service, connection refused

前端 未结 7 2161
Happy的楠姐
Happy的楠姐 2020-12-08 18:06

I\'m trying to run a simple web server on a Raspberry Pi with Flask. When I run my Flask app, it says:

running on http://127.0.0.1:5000/

7条回答
  •  一向
    一向 (楼主)
    2020-12-08 18:59

    If you have debug = True inside your app.run(), then it will not be visible to other machines either. Specify host and port inside app.run() without the debug = True.

提交回复
热议问题