EMQX Public Broker: connection details & online test

Free public MQTT 5 broker operated by EMQ, reachable over TCP, TLS and WebSockets.

Endpoints and ports

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

About EMQX Public Broker

broker.emqx.io is a free public MQTT broker run by EMQ, the company behind EMQX. It supports MQTT 3.1, 3.1.1 and MQTT 5 and exposes TCP, TLS, WebSocket and secure WebSocket listeners.

Like every public sandbox it is shared by many users at once, so treat any topic as visible to the world.

Highlights

  • MQTT 5 support
  • TCP, TLS, WS and WSS endpoints
  • No sign-up

Limitations

  • Fully public — anyone can read your topics
  • No authentication
  • Testing only, no SLA

Connect with code

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

const client = mqtt.connect('wss://broker.emqx.io:8084/mqtt');

client.on('connect', () => {
  client.subscribe('testmqtt/emqx/#');
  client.publish('testmqtt/emqx/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.

From the makers of TestMQTT

Outgrown the public sandbox?

Public test brokers are shared with thousands of strangers. ConnectMQ gives you a private MQTT broker you can trust with real devices — set up in minutes.

  • Your own isolated broker — nobody else can read your topics
  • Username / password auth and per-topic access control
  • TLS and secure WebSockets, MQTT 3.1.1 and MQTT 5
  • Same client code from first test to production

Other MQTT brokers