Also, I thought flask automatically runs on port 5000 then why it can’t identify any open HTTP ports?
My application ins running fully in local but while render deployment facing issues.
Please do help if anyone can solve this issue. Do let me know at the earliest!!
Could you ensure you’re binding to 0.0.0.0 and not localhost or 127.0.0.1?
The other issue that can sometimes cause this is our automatic port detection not working correctly. You might also try explicitly setting a PORT environment variable to bypass the automatic detection.
I got the same error, this is caused by the development server used, so in production, you need to use gunicorn server : install it locally then add it to your requirement.txt file don’t forget to set the start command as gunicorn app:app instead of flask run