HiveMQ Public Broker
One of the most widely used public MQTT sandboxes. Open to everyone, no authentication.
Managed MQTT broker with private, authenticated instances — built for teams moving from testing to production.
| Transport | URL | Copy |
|---|---|---|
| MQTT (TCP) | mqtt://broker.connectmq.com:1883 | |
| MQTT over TLS | mqtts://broker.connectmq.com:8883 | |
| WebSocket | ws://broker.connectmq.com:8083/mqtt | |
| Secure WebSocket | wss://broker.connectmq.com:8084/mqtt |
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.
mosquitto_sub -h broker.connectmq.com -p 1883 -t 'testmqtt/connectmq/#' -vimport 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.
One of the most widely used public MQTT sandboxes. Open to everyone, no authentication.
Free public MQTT 5 broker operated by EMQ, reachable over TCP, TLS and WebSockets.
The classic Mosquitto test server, maintained by the Mosquitto project. Great for interoperability tests.
Public sandbox from the Eclipse IoT working group, with WebSockets on standard web ports.