How are you serving the flask app?
If your flask app is running with its own built-in server (not recommended for production, only for testing) and you didn't specify otherwise, you should be able to connect to <Raspy IP>:5000 in a browser, like:
192.168.1.1:5000
Make sure you run the app on "0.0.0.0", not on "127.0.0.0." nor "localhost" as it will only be available on the Pi's local browser, not from the network.
For the final product you need a more reliable server though. Personally I'm using Nginx to serve my web apps, and you can easily have several apps on the same Pi. Here's a good tutorial for that: https://www.raspberrypi-spy.co.uk/2018/ ... pberry-pi/.
If your flask app is running with its own built-in server (not recommended for production, only for testing) and you didn't specify otherwise, you should be able to connect to <Raspy IP>:5000 in a browser, like:
192.168.1.1:5000
Make sure you run the app on "0.0.0.0", not on "127.0.0.0." nor "localhost" as it will only be available on the Pi's local browser, not from the network.
For the final product you need a more reliable server though. Personally I'm using Nginx to serve my web apps, and you can easily have several apps on the same Pi. Here's a good tutorial for that: https://www.raspberrypi-spy.co.uk/2018/ ... pberry-pi/.
Statistics: Posted by kheylen25 — Tue Jan 09, 2024 11:19 am