Can't connect to a MQTT broker on a remote desktop

Skip to first unread message

Minh Hiền Bùi

May 5, 2022, 7:47:07 AMMay 5
I have a error "No connection could be made because the target machine actively refused it" on this code running on a remote desktop but it was running fine on my local machine, where I connect to that remote desktop.

MqttClient client = new MqttClient("",
client.MqttMsgPublishReceived += client_MqttMsgPublishReceived;

string clientID = "myclientid_" + RandomDigits(4);
client.Connect(clientID, null, null);

I tried to disable the firewall but some how it still doesn't managed to connect to the broker. I am kinda confused about this because I am also new to the websocket and security things

Reply all
Reply to author
0 new messages