Did you mean to visit: http://localhost:5000/?
Port 5000 is commonly used by:
This error occurs when another application is already using port 5000. Solutions:
app.run(port=5001)
dotnet run --urls="http://localhost:5001"
netstat -ano | findstr :5000
then taskkill /PID [PID] /F
lsof -i :5000
then kill -9 [PID]
By default, Flask only listens on localhost:
app.run(host='0.0.0.0', port=5000)
If you're experiencing CORS errors:
services.AddCors(options => { options.AddPolicy("AllowAll", builder => builder .AllowAnyOrigin() .AllowAnyMethod() .AllowAnyHeader()); });
app.UseCors("AllowAll");