The broker is the message hub.
An MQTT broker accepts client connections, receives published messages, matches topic filters, and forwards messages to subscribed clients.
Common ports are 1883 for MQTT over plain TCP and 8883 for MQTT over TLS. Some platforms also expose MQTT over WebSocket for browser-based clients.
How to test a broker.
Use a desktop client such as MQTT.fx, MQTTX, or MQTT Explorer. Connect with the broker host and port, subscribe to a topic, publish a payload, and verify delivery.
For production systems, test authentication, TLS certificates, retained messages, QoS behavior, offline sessions, and topic permission rules separately.