Warning: no private IP detected for binding broker. Will bind to XXX, which may give public access to the broker

(Sorry for the bump, but…)

I finally found a solution!

The error happens if your system has only 127.0.0.1 and its public IPv4 address as ip addresses.

You can fix it by creating a new alias for an interface with a private IP (such as 10.0.0.1).

If you’re using systemd-networkd, adding the lines:

[Address]
Address=10.0.0.1/24

to one of the interfaces defined in /etc/systemd/network/ should be enough to fix the problem.

1 Like