# ESP32 publishes to HiveMQ Cloud but WebSocket client gets connection timeout

**URL:** <https://community.hivemq.com/t/esp32-publishes-to-hivemq-cloud-but-websocket-client-gets-connection-timeout/3972>\
**Category:** Uncategorized\
**Created:** [December 16, 2025, 10:14am UTC](https://community.hivemq.com/t/esp32-publishes-to-hivemq-cloud-but-websocket-client-gets-connection-timeout/3972 "2025-12-16T10:14:14Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![SAIKRISHNA](https://avatars.discourse-cdn.com/v4/letter/s/a9a28c/32.png) [@SAIKRISHNA](https://community.hivemq.com/u/SAIKRISHNA)\
**Post date:** [December 16, 2025, 10:14am UTC](https://community.hivemq.com/t/esp32-publishes-to-hivemq-cloud-but-websocket-client-gets-connection-timeout/3972/1 "2025-12-16T10:14:14Z")

</div>

Hello HiveMQ Community,

I have an ESP32 DevKit that successfully connects to HiveMQ Cloud and publishes messages. In a previous project, I used a different setup but the same logic, and the WebSocket client was able to subscribe and receive messages without issue.

In the **current setup** , the ESP32 still publishes successfully, but a remote WebSocket client **cannot connect and times out**. @MQTT@Websocket

 ![Screenshot 2025-12-16 120930](https://canada1.discourse-cdn.com/flex035/uploads/hivemq1/original/2X/8/8df4c5ed9c09b02723c0ff9a8a3b85987fc5abc2.png)

---

<div class="post-metadata">

**Author:** ![zingiber](https://avatars.discourse-cdn.com/v4/letter/z/ce73a5/32.png) [@zingiber](https://community.hivemq.com/u/zingiber)\
**Post date:** [March 16, 2026, 4:39pm UTC](https://community.hivemq.com/t/esp32-publishes-to-hivemq-cloud-but-websocket-client-gets-connection-timeout/3972/2 "2026-03-16T16:39:40Z")

</div>

Hi Saikrishna,

my first supsicion would be an issue on the network layer. Do you know if there is a firewall between your ESP32 device and HiveMQ Cloud’s endpoint?

Kind regards,  
Finn
