Failed to connect with HiveMQ mqtt broker

Hi,

I am planning to send the sample data like a “hello world” message from the application running in imx8mp solidrun to the mqtt broker. However, my mqtt application is unable to connect to the hivemq mqtt broker with host broker.hivemq.com and websocket port 8884.
Am getting the error of connection failed: network unreachable.
Here, I have followed some tests
ping google.com
ping 8.8.8.8
So. these ping statuses give successful packet transmission and reception without loss.
So, please let me know if anything is missing.

iptables

Regards
Manoj.

It appears as though you have network connectivity and dns name resolution. You can test with your iptables rules removed. Beyond that I would guess there is a connectivity issue elsewhere on your network, or an issue with the mqtt setup. Unfortunately I don’t know anything regaring broker.hivemq.com, if they have support forum you may want to contact them for advice.