Page 1 of 1

MQTT no connection with ip adres..

Posted: Sunday 03 January 2021 19:37
by OedzesG
Hi all,

Hope someone can help me out with Mosquitto....

when ik connect Domoticz to mosquitto using: localhost or 127.0.0.1 Domoticz is connecting the right way to mosquitto, but when i use the exact ip adress: 192.168.178.17 in this case, the connection fails.

For Domoticz localhost is ok, but i need to connect another machine inside the localnetwork where the connection over and over fails....


Thnx!

Re: MQTT no connection with ip adres..

Posted: Sunday 03 January 2021 20:46
by FireWizard
Hi, @OedzesG,

Just a simple question.

Do you have a Firewall installed on your device, that might be blocking port 1883?

Any other device between the two devices with a Firewall, such as a router?

Regards

Re: MQTT no connection with ip adres..

Posted: Sunday 03 January 2021 23:43
by OedzesG
Do you have a Firewall installed on your device, that might be blocking port 1883?
Tnx for answer,

i allowd Ubuntu firewall (in my case) all the ports and ip adresses.
Problem is solved by adding

Code: Select all

# Local MQTT
listener 1883
# End Local MQTT
to the mosquitto.conf.