Can not connect to HiveMq, TCP reset port 8883

I have just created the new
Installed mqtt on the linux, but can not connect to HiveMq. Tried command is in the GettingStarted part…

mqtt sub -h -p 8883 -s -u TxxxxxTdevice2 -pw -t ‘my/test/topic’
Enter value for --password (The password for authentication):
Client ‘’ sending CONNECT MqttConnect{keepAlive=60, cleanStart=true, sessionExpiryInterval=0, simpleAuth=MqttSimpleAuth{username and password}}
Client ‘’ DISCONNECTED finishConnect(…) failed: Connection refused
finishConnect(…) failed: Connection refused:

I got TCP reset back…

13:04:13.087618 IP (tos 0x0, ttl 64, id 48360, offset 0, flags [DF], proto TCP (6), length 60)
ubuntu2002-4.43684 > Flags [S], cksum 0xb6cc (incorrect → 0x40d5), seq 4219484363, win 64240, options [mss 1460,sackOK,TS val 3809767651 ecr 0,nop,wscale 7], length 0
13:04:13.088295 IP (tos 0x0, ttl 252, id 42886, offset 0, flags [none], proto TCP (6), length 40) > ubuntu2002-4.43684: Flags [R.], cksum 0xfc9c (correct), seq 0, ack 4219484364, win 64240, length 0

What could be the issue?

Hi @ituskebt ,

Is port 8883 in your system open for communication or blocked by a firewall?

Does it work when you specify the password in the command line --user MyUser --password MyPassword?

Try adding --verbose option to the end of your command to get more informative output from the client.

Last but not least, verify your mqtt client and your java version: mqtt --version

Dasha from HiveMQ team