Page 1 of 1

MQTT cant connect in MQTT Explorer

Posted: Wednesday 22 March 2023 15:28
by Dave47
I can not connect in MQTT Explorer with mij Rasberry ip adres where MQTT is installed.

Also i can not connect with localhost port 1883

It gives also problems in zwave-js-ui
2023-03-22 10:13:15.177 INFO MQTT: MQTT client reconnecting
2023-03-22 10:13:15.181 ERROR MQTT: Mqtt client error connect ECONNREFUSED 127.0.0.1:1883
Error: connect ECONNREFUSED 127.0.0.1:1883
at TCPConnectWrap.afterConnect [as oncomplete] (node:net16)
2023-03-22 10:13:15.183 INFO MQTT: MQTT client closed

In domoticz i have also Node-red with MQTT and thats ok. It works fine.
For node-red i setup in Domoticz MQTT with lan interface localhost en port 1883.

Dont understand why i can not connect in MQTT Explorer

Re: MQTT cant connect in MQTT Explorer

Posted: Wednesday 22 March 2023 15:48
by Kedi
Perhaps use the IP-address of the Raspberry instead of 127.0.0.1

Re: MQTT cant connect in MQTT Explorer

Posted: Wednesday 22 March 2023 16:40
by Dave47
Is not working.

Re: MQTT cant connect in MQTT Explorer

Posted: Thursday 23 March 2023 11:26
by Kedi
What is in the logging of mosquitto?
If you put "log_type debug" in the mosquitto configuration, you will be able to find the cause.

Re: MQTT cant connect in MQTT Explorer

Posted: Thursday 23 March 2023 22:51
by Dave47
The problem has been solved.

Re: MQTT cant connect in MQTT Explorer

Posted: Friday 24 March 2023 9:47
by Kedi
So what was the solution?

Re: MQTT cant connect in MQTT Explorer

Posted: Saturday 25 March 2023 7:40
by Dave47
From Mosquitto 2 and higher its only possible to login with localhost on that device.
For another device you have to change some settings in mosquitto.conf. you can login than with raspberry ip

Re: MQTT cant connect in MQTT Explorer

Posted: Tuesday 28 March 2023 14:18
by waltervl
Dave47 wrote: Saturday 25 March 2023 7:40 From Mosquitto 2 and higher its only possible to login with localhost on that device.
For another device you have to change some settings in mosquitto.conf. you can login than with raspberry ip
As warned for on our domoticz MQTT Wiki:
https://www.domoticz.com/wiki/MQTT#Installing_Mosquitto

Re: MQTT cant connect in MQTT Explorer

Posted: Tuesday 28 March 2023 17:42
by Dave47
Ai. Yes i See it now.