Can't connect to Flask web service, connection refused

前端 未结 7 2184
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:40

    You will have to run the development server such that it listens to requests on all interfaces and not just the local one

    Ask Flask to listen on 0.0.0.0:PORT_NUMBER

    or any other port you may choose

提交回复
热议问题