handle_ConnectMqttBroker could not connect to mqtts-up.iot.arduino.cc:8884


I'm trying to get my first project to work using the IOT cloud, but keep getting the following error:

Device ID: ff1cd4dc-1ce4-47c0-a22b-71b0490c3bb3
MQTT Broker: mqtts-up.iot.arduino.cc:8884
WiFi status ESP: 255 Connected to "Lochmara" ArduinoIoTCloudTCP::handle_ConnectMqttBroker could not connect to mqtts-up.iot.arduino.cc:8884
ArduinoIoTCloudTCP::handle_ConnectMqttBroker 1 connection attempt at tick time 22532
ArduinoIoTCloudTCP::handle_ConnectMqttBroker could not connect to mqtts-up.iot.arduino.cc:8884

I have done the following:
Deleted all dashboards/ things / everything, and rebuilt from scratch.
I have remarked out all code (except serial println) that I wrote and am just using the code that is automatically generated by the IDE.
I am using an ESP32 dev.
I have read all articles I can find on the issue but am still unable to fix the problem.
I have checked my fire wall and it is set up to allow everything out on all ports.
It connects to the Wifi with no problem.

Any help with this issue would be much appreciated.

Cheers Ants


Regardless of the board used (ESP32 or ESP8266) the connection is not made, and the Log message is clear, it cannot connect to the MQTT broker through port 8884.
Obviously I can't connect because I don't have the security certificates to use TLS.
The question therefore is how can the connection with the broker be configured to work with port 1883?

1 Like

even I was doing my 1st project on Arduino IoT Cloud and faced a similar issue..

would you just let me know whether and how you fixed that bug..

for reference I'm attaching a screenshot of my serial monitor window

The thing is I'm getting output readings on serial monitor but not on Arduino IoT Clouds Dashboard

1 Like

I'm also having same problems. Wifi is connected but server looks unavailible. Any guide how to troubleshoot this problem?

1 Like

Also having the same problem! Any help would be appreciated

1 Like

don't know friend, might be you are using old library or library with not suitable version. when I encountered this issue I tried to solve it but couldn't so switched my platform, I then done my project on Firebase, u can use ThingSpeak aslo both are good and more stable than Arduino IoT Cloud.


Check your secret key when you are creating your thing, i just noticed that my error was that i was intruducing the wifi key twice, so, the second box is for the secret key that arduino got you when you creathed the new thing


Could you solve your problems? I'm also stuck with not being able to connect to the IoT cloud.
My secret key and device id are correct, so I don't know what else to do.

1 Like

I'm inclined to give those others a try. It shouldn't be this difficult. Definitely needs some work. At this point it's not making things easier to connect.

Please install the create agent program before.

Did you already find a sollution, mine still wont connect

Check that the secret key for your Network configuration is set correctly.

There are 3 inputs for Network config.
Your SSID name, SSID Password(WEP) and lastly the Secret key is the key generated by the Arduino cloud service which is unique.