Flask + Tornado application - how to communicate with server (Connection refused) Flask + Tornado application - how to communicate with server (Connection refused) flask flask

Flask + Tornado application - how to communicate with server (Connection refused)


Connection refused will come if either permission problem or nothing running on that port. In your case i guess there is nothing running on 5000.

please check with this command

ss -ltp

You may have to use sudo to list all tcp connections with port and user

(e.x) sudo ss -ltp

My output:

LISTEN 0 128 *:6379 : users:(("redis-server",pid=12325,fd=5))

Note: I just listed my one output of my list here.

This just tells me redis is running on 6379 port.

If in case tornado is running it will list that for you while firing this command.

Let me know if any problem you are facing in this.