# Failed to connect with HiveMQ mqtt broker

**URL:** <https://community.solid-run.com/t/failed-to-connect-with-hivemq-mqtt-broker/726>\
**Category:** Uncategorized\
**Created:** [September 22, 2023, 6:13am UTC](https://community.solid-run.com/t/failed-to-connect-with-hivemq-mqtt-broker/726 "2023-09-22T06:13:56Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![manoj](https://avatars.discourse-cdn.com/v4/letter/m/d9b06d/32.png) [@manoj](https://community.solid-run.com/u/manoj)\
**Post date:** [September 22, 2023, 6:13am UTC](https://community.solid-run.com/t/failed-to-connect-with-hivemq-mqtt-broker/726/1 "2023-09-22T06:13:56Z")

</div>

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](http://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](http://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](https://europe1.discourse-cdn.com/flex005/uploads/solid_run/original/1X/c800d459ea5c21694c3838295f500a14872d55bf.png)

Regards  
Manoj.

---

<div class="post-metadata">

**Author:** ![jnettlet](https://dub1.discourse-cdn.com/flex005/user_avatar/community.solid-run.com/jnettlet/32/62_2.png) [@jnettlet](https://community.solid-run.com/u/jnettlet)\
**Post date:** [September 22, 2023, 6:55am UTC](https://community.solid-run.com/t/failed-to-connect-with-hivemq-mqtt-broker/726/2 "2023-09-22T06:55:17Z")

</div>

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](http://broker.hivemq.com), if they have support forum you may want to contact them for advice.
