I am trying to use the HiveMQ Cloud service for the first time. But i can’t seem to connect to my cluster.
I tried 3 methods already (Webclient, MQTT CLI & MQTT.fx) but they all have the same issue.
Connection faillure due to ‘connection time out’.
First off, welcome to the HiveMQ Community! We’re always happy to see new faces interested in MQTT.
There are a few items that are worth checking out of the gate :
The HiveMQ Cloud broker requires an SSL connection, so the connecting client must support an SSL connection to successfully complete connection.
When using WebSocket connections, such as with a WebClient, the HiveMQ Cloud Broker utilizes port 8884 by default, rather than port 8883.
When using MQTT CLI to initiate a connection, the additional option -s enables a secure session, allowing for TLS.
With that in mind, if you could provide the connection configurations that you are attempting, we would be more than happy to review further - please be sure to obfuscate any connection information that may be private, such as the start of the broker URL, usernames, and passwords.
The connection information offered in both the command prompt and web client appear accurate, and should allow successfully connectivity to the Broker host - with that in mind, the failure that we are seeing would be consistent with the provided credentials being rejected by the broker.
For a test, try utilizing the ‘Connect with Generated Credentials’ option in the WebClient - this will generate new credentials and automatically connect the client with these new credentials, and should allow us to test a connection without any potential credential errors.
Let us know if you are able to give this a shot, or if you encounter any further bumps along the way!
I tried to use the ‘Connect with Generated Credentials’, but stil have the same issue.
I also tried to put those credentials in MQTT CLI but also there it doens’t work.
In the meantime i tried pinging to see if i can actually reach the brokers.
I tried the standard and own broker. Both ping requests timed out.
Could it be that internet connection in my company pervets me from connecting (i’m doing my student job). So i don’t know the setup here.
You are being blocked! In fact, some security policy of your company or even an anti-virus installed locally on your computer may be blocking access to these ports 1883 or 8883.