# Connection to hivemq cloud

**URL:** https://community.hivemq.com/t/connection-to-hivemq-cloud/1892
**Category:** Uncategorized
**Created:** [March 14, 2023, 4:12pm UTC](https://community.hivemq.com/t/connection-to-hivemq-cloud/1892 "2023-03-14T16:12:52Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![christian](https://avatars.discourse-cdn.com/v4/letter/c/b2d939/32.png) [@christian](https://community.hivemq.com/u/christian)
#### Post date: [March 14, 2023, 4:12pm UTC](https://community.hivemq.com/t/connection-to-hivemq-cloud/1892/1 "2023-03-14T16:12:52Z")

</div>

Hello,

I wand to get into the mqtt business. For test purposes I use a free cluster and have no problems to connect via the web client of hivemq. but when i try to connect via mqtt fx i can not get access. the error message is only “mqttexception: connection lost”.

tried some devices as well. like my esp32 with different binaries. all the same. Followed through the “get started” documentation. But no luck yet.

Christian

---

<div class="post-metadata">

### Author: ![Diego](https://avatars.discourse-cdn.com/v4/letter/d/f04885/32.png) [@Diego](https://community.hivemq.com/u/Diego)
#### Post date: [March 14, 2023, 6:07pm UTC](https://community.hivemq.com/t/connection-to-hivemq-cloud/1892/2 "2023-03-14T18:07:48Z")

</div>

Hello Christian,

Welcome to HiveMQ Community. First of all, let’s try to check if you are able to reach out HiveMQ Cloud instance from your computer. Can you please open a Windows PowerShell console, execute the command below and share the results?

Test-NetConnection YOUR\_HiveMQ\_Cloud\_URL -Port 8883

_Sample screenshot_

 ![image](https://canada1.discourse-cdn.com/flex035/uploads/hivemq1/original/1X/625f1f7f242d2ec4257764c60d7978cb4e43c438.png)

Best regards,  
Diego from HiveMQ Team
