# Cannot connect through HiveMQ websockets client

**URL:** <https://community.hivemq.com/t/cannot-connect-through-hivemq-websockets-client/1401>\
**Category:** Uncategorized\
**Created:** [September 1, 2022, 8:06pm UTC](https://community.hivemq.com/t/cannot-connect-through-hivemq-websockets-client/1401 "2022-09-01T20:06:40Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![adown](https://avatars.discourse-cdn.com/v4/letter/a/7cd45c/32.png) [@adown](https://community.hivemq.com/u/adown)\
**Post date:** [September 1, 2022, 8:06pm UTC](https://community.hivemq.com/t/cannot-connect-through-hivemq-websockets-client/1401/1 "2022-09-01T20:06:40Z")

</div>

Hello, i am trying to connect to my HiveMQ cloud broker through the provided websockets client. I have followed the getting started guide exactly but i get an error: Connect failed: AMQJS0007E Socket error:undefined.

I am able to connect with the CLI interface, and using two instances i can sub/pub messages. But i would much prefer the nice GUI of the websockets application for regular use.

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

---

<div class="post-metadata">

**Author:** ![Daria\_H](https://avatars.discourse-cdn.com/v4/letter/d/dfb087/32.png) [@Daria\_H](https://community.hivemq.com/u/Daria_H)\
**Post date:** [September 2, 2022, 7:12am UTC](https://community.hivemq.com/t/cannot-connect-through-hivemq-websockets-client/1401/2 "2022-09-02T07:12:56Z")

</div>

Hi @adown ,  
Great that you are interested in MQTT and HiveMQ, welcome to our community!  
May I ask - are you interested in MQTT for work or for a study project?

To your error: The WebSocket port is 8884 and you have 8883. Try 8884!

I hope this helps,  
Dasha from HiveMQ team
