03-02-2021, 08:33 AM
Port 5001 is a bit odd. A Flask development server defaults to 5000, but if that wasn't available it would make sense to use 5001. Normally, though, when you deploy the app, you would use a WSGI server which would default to HTTP ports. The main reason not to use the HTTP ports is if you are serving several apps from the same domain and then you'd normally route the requests through another server like nginx, which could redirect all requests to a particular subdomain or directory to a particular service on an internal port. I really hope this isn't being served on a development server...

