I am using `broker.hivemq.com` for my IoT lecture at Hochschule München. Thanks a lot for providing this public, free-of-charge service.
When the FQDN `broker.hivemq.com` is resolved to IP-Adresses via DNS, IPv6 addresses are first returned, followed by some IPv4 addresses.
Connecting to `broker.hivemq.com` via IPv4 works fine as usual. However, using the IPv6 addresses, an MQTT connection is not possible.
This could either be a client problem on our side (we are using various MQTT tools and some Python libraries), or, it could be that `broker.hivemq.com` does not support MQTT via IPv6.
As a workaround, we are currently using www.mqtt-dashboard.com , which seems to be a DNS alias for `broker.hivemq.com` but is resolved only to IPv4, which keeps our clients functional.
Welcome to the HiveMQ Community. It’s great to have you here, and we’re glad you’re exploring MQTT and HiveMQ.
At this time, broker.hivemq.com does not support MQTT connections over IPv6. Although some DNS queries may return IPv6 records, the broker itself is only reachable via IPv4.
If your MQTT client supports connections only via IP address rather than a fully qualified domain name (FQDN), you may use a workaround by resolving the hostname first and then connecting using the resulting IPv4 address. For example:
Please be aware that these IP addresses can change periodically—typically only a few times per year—so they should not be considered fully reliable for long-term static configuration.
We hope this information is helpful. If you have any further questions, please feel free to reach out.
Using static IPv4 addresses is not an option, since they can become invalid at any time as you already mentioned.
For our own programs, which are implemented in CPython and MicroPython, we can make sure that the DNS-Lookup-Results are filtered for IPv4. So we have a solution for this use case.
Thank you for your questions. We appreciate you taking the time to look into this and are happy to clarify.
Please note the following points:
broker.hivemq.com and www.mqtt-dashboard.com are functionally served from the same underlying system; they are simply accessed via different DNS names.
To verify this, you can run the commands below and compare their outputs:
IPv6 support: At this time, this does does not support IPv6 for the MQTT protocol. If an IPv6 address is resolved, the connection will fall back to IPv4.
IP address changes: The IP addresses associated with broker.hivemq.com or www.mqtt-dashboard.com may change. For this reason, we recommend using the DNS names rather than hardcoding IP addresses.
We hope this information is helpful. Please do not hesitate to reach out if you have any further questions or need additional assistance.