Recommended broker

ConnectMQ: connection details & online test

Managed MQTT broker with private, authenticated instances — built for teams moving from testing to production.

Endpoints and ports

TransportURLCopy
MQTT (TCP)mqtt://broker.connectmq.com:1883
MQTT over TLSmqtts://broker.connectmq.com:8883
WebSocketws://broker.connectmq.com:8083/mqtt
Secure WebSocketwss://broker.connectmq.com:8084/mqtt

About ConnectMQ

ConnectMQ is a managed MQTT broker platform. Instead of sharing a public sandbox with thousands of strangers, you get your own isolated broker with credentials, access control and TLS out of the box.

The shared endpoint at broker.connectmq.com is ideal for quick experiments, and the same account lets you spin up a private broker when your prototype becomes a product — no migration, same client code.

Highlights

  • Private, isolated broker instances
  • Username / password and per-topic access control
  • TLS and secure WebSockets
  • MQTT 3.1.1 and MQTT 5 support
  • Same endpoint style for testing and production

Connect with code

mosquitto CLI
mosquitto_sub -h broker.connectmq.com -p 1883 -t 'testmqtt/connectmq/#' -v
MQTT.js (browser or Node.js)
import mqtt from 'mqtt';

const client = mqtt.connect('wss://broker.connectmq.com:8084/mqtt');

client.on('connect', () => {
  client.subscribe('testmqtt/connectmq/#');
  client.publish('testmqtt/connectmq/hello', 'Hello from MQTT.js');
});

client.on('message', (topic, payload) => {
  console.log(topic, payload.toString());
});

Having trouble? See common MQTT connection errors or learn how to test an MQTT broker step by step.

Other MQTT brokers