Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 7503

Python • Re: Debug Flask Server from Thonny

$
0
0
Ok, so I'm back to Flask, making progress.

Code:

if __name__ == "__main__":   app.run(host="0.0.0.0", port=8035) # this works

Code:

 app.run(debug=True, host="0.0.0.0", port=8055)  # this does not work

Code:

  app.run(host='0.0.0.0', port=8080, debug=True) # this does not work

Code:

app.run(host="0.0.0.0", port=8050, debug=True) # this does not work
Is it normal for "debug=True" to prevent accessing the server?

Without debug I can access from any device on my home network. With debug=True I can't even access from the Rasp Pi running Flask.

I should at least be able to access from the same device running Flask??

Statistics: Posted by OldPCGuy — Sat Oct 11, 2025 12:13 am



Viewing all articles
Browse latest Browse all 7503

Trending Articles