Forums

Flask + socketIO port in use issue

Hi,

I did first go over the forum before posting this and did read the Flask tips. However I am also using Flask_socketIO module, all work fine locally. But here I keep getting: socket.error: [Errno 98] Address already in use: ('127.0.0.1', 5000) Even after I did not define any port or IP.

Did I miss anything?

You can't listen on random ports in a console on PythonAnywhere. Or rather, you might be able to, but we don't route traffic there, so there's no way to connect to the port.

Ok. But then how do I start APP correctly? Any flask example?

yep! http://help.pythonanywhere.com/pages/Flask and https://blog.pythonanywhere.com/121/