Mosquitto 2.0.20 IPv6 Support

Hi everyone,

I’m currently using Mosquitto version 2.0.20 and had a question regarding IPv6 support.

If I forward internet traffic over IPv6, will my existing Mosquitto configuration continue to work as expected, or are there specific changes required to ensure proper functionality?

I’d appreciate any guidance on:

  • Whether Mosquitto 2.0.20 fully supports IPv6 in this scenario

  • Any configuration adjustments needed (listeners, bind address, etc.)

  • Potential issues or best practices when using IPv6 with Mosquitto

Thanks in advance for your help!

Mosquitto fully supports ipv6, so this should not be a problem.

Depending on your mosquitto,conf file you could have defined only ipv4 support for a listener, but if this is not the case and you have checked that your firewall and OS support ipv6 connections, that should work out of the box.
To be safe, explicitly use listener 1883 without any addons to ensure the broker binds to all available IPv6 interfaces. Also, remember to add a DNS AAAA record if you are using a hostname for client connections.