Mqtt_server not connecting on port 8884

HI @Hassan ,

In the HiveMQ Cloud cluster you have 2 interfaces:

Port (TLS): 8883
Port (Websocket + TLS): 8884

Authentication is with username and password. CA file (if needed) you can download from here: link.

We suggest using MQTT CLI as MQTT client. Then you can test as follows

mqtt publish --topic ${myTopic} --message ${myMessage} \
  --host ${hostname} --port 8884 --ws \
  --secure --debug \
  --username ${myUsername} --password ${myPassword}

Where

  • option --ws tells the client to use WebSocket protocol,
  • option --secure tells the client to use SSL,
  • option --debug tells the client to output debug information to the stdout.

Or you can test as follows:

mqtt publish --topic ${myTopic} --message ${myMessage} \
  --host ${hostname} --port 8883 \
  --secure --debug  \
  --username ${myUsername} --password ${myPassword}

Where

  • option --secure tells the client to use SSL,
  • option --debug tells the client to output debug information to the stdout.

I hope this helps,
Dasha from HiveMQ team