Connection failed to the broker

Node-red suddenly stops connection with my broker in another device.
the broker is active and running, and I ping the devices in both sides, they are connected.
the only message in node-red "connection failed to broker:mqtt://ip address.
I reboot both of them many times, but no change, I have the same error
could you help me to figure out the problem, please?

Try connecting using a different MQTT client from the same machine as you a running Node-RED on. That way you can see if its a Node-RED issue or a machine issue

1 Like

Thanks a lot,
I fixed it, the problem is the broker machine.