# Can not connect to the broker: Ungraceful Disconnects from unknown clients

**URL:** <https://community.hivemq.com/t/can-not-connect-to-the-broker-ungraceful-disconnects-from-unknown-clients/241>\
**Category:** HiveMQ Community Edition\
**Created:** [June 23, 2020, 3:34am UTC](https://community.hivemq.com/t/can-not-connect-to-the-broker-ungraceful-disconnects-from-unknown-clients/241 "2020-06-23T03:34:01Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![chengxiangwang](https://avatars.discourse-cdn.com/v4/letter/c/a9a28c/32.png) [@chengxiangwang](https://community.hivemq.com/u/chengxiangwang)\
**Post date:** [June 23, 2020, 3:34am UTC](https://community.hivemq.com/t/can-not-connect-to-the-broker-ungraceful-disconnects-from-unknown-clients/241/1 "2020-06-23T03:34:01Z")

</div>

I started HiveMQ on my laptop as a single node service, but i can not connect to the broker. And  
“Ungraceful Disconnects from unknown clients” is always printed in even.log.

I am using MQTTBox and below is how i connect:

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

Any one encounter this problem?

---

<div class="post-metadata">

**Author:** ![michael\_w](https://yyz1.discourse-cdn.com/flex035/user_avatar/community.hivemq.com/michael_w/32/200_2.png) [@michael\_w](https://community.hivemq.com/u/michael_w)\
**Post date:** [June 24, 2020, 7:39pm UTC](https://community.hivemq.com/t/can-not-connect-to-the-broker-ungraceful-disconnects-from-unknown-clients/241/2 "2020-06-24T19:39:22Z")

</div>

Hi @chengxiangwang,

the keep alive should be the issue here. The keep alive are 16bits so the maximum value is 65.535.

Greetings,  
Michael from the HiveMQ team.

---

<div class="post-metadata">

**Author:** ![chengxiangwang](https://avatars.discourse-cdn.com/v4/letter/c/a9a28c/32.png) [@chengxiangwang](https://community.hivemq.com/u/chengxiangwang)\
**Post date:** [July 6, 2020, 9:03am UTC](https://community.hivemq.com/t/can-not-connect-to-the-broker-ungraceful-disconnects-from-unknown-clients/241/3 "2020-07-06T09:03:05Z")

</div>

@michael_w Thank u! That helped me!
