Forums

CloudMQTT ConnectionRefusedError: [Errno 111] Connection refused

Hello, I am new to pythonanywhere and registered with free account. What I'm trying to do is to make an MQTT client that uses CloudMQTT as broker. I have successfully connect to CloudMQQT using my local machine however I encountered ConnectionRefusedError when I run my script on pythonanywhere console. I understand that free accounts have restrictions and can only make outbound connections on whitelists, however https://www.pythonanywhere.com/whitelist/ included .cloudmqtt.com. Did I miss something? I am new to pythonanywhere. Happy coding ya'll.

In addition to the whitelist, free users can only connect out using http or https.

So upgrading will solve my problem with MQTT protocol? Thanks glenn

Yes, it will.

Can you share a working example for pythonanywhere that implements a connection to Cloudmqtt?

responded to you here