Cannot connect to Mqtt brober [message #1847275] |
Thu, 21 October 2021 15:00 |
Alex B Messages: 1 Registered: October 2021 |
Junior Member |
|
|
Hello Everyone!
I faced a problem with the mqtt protocol. I can't connect to the mqtt broker, I get MqttException in the logs (see screenshot 1, 2). Although a year ago everything worked fine ...
The broker is installed on a mini pc that is connected to the router via Wifi. The mini pc pinged and I can log into it with TeamViewer. I downloaded and installed Mosquitto Mqtt on my personal laptop, entered the login, password, broker's ip and port 1883 (see screenshot 3). But Mosquitto Mqtt does not connect to the broker.
I checked the login and password, tried to restart, reinstall the broker. Tried other ports 443, 8883, 80. No result.
In the Firewall (on a mini PC and on my laptop), I registered the rules for port 1883 (see screenshot 4-7). Tried to turn off Firewalls everywhere.
I also registered ports on the router .
Using the netstat-an command, I checked port 1883, it seems to be working (see screenshot 9). The broker itself is also visible in the task manager processes.
But telnet on the mini pc could not reach port 1883.
I don't know what else to try and how to solve it. Tell help.
-
Attachment: 1.jpg
(Size: 76.86KB, Downloaded 1165 times) -
Attachment: 2.jpg
(Size: 71.12KB, Downloaded 1153 times) -
Attachment: 3.jpg
(Size: 14.94KB, Downloaded 1179 times) -
Attachment: 4.jpg
(Size: 29.70KB, Downloaded 1146 times) -
Attachment: 5.jpg
(Size: 38.11KB, Downloaded 1142 times)
|
|
|
Re: Cannot connect to Mqtt broker [message #1847940 is a reply to message #1847275] |
Sun, 14 November 2021 18:49 |
Ma rk Messages: 1 Registered: November 2021 |
Junior Member |
|
|
Hello! I have a similar problem. I have installed the mqtt server on a Windows 7 computer.
As I do a connection test with the address 127.0.0.1 this is a connection, if I am doing a connection with the address of the network adapter 192.168.1.14 the connection is rejected.
C:\Program Files (x86)\mosquitto>mosquitto_pub.exe -h localhost -u mqtt -P domoticz -t /sensor1 -m test
it's ok,
C:\Program Files (x86)\ mosquitto> mosquitto_pub.exe -h 192.168.1.14 -u mqtt -P to
moticz -t / sensor1 -m test
Error: A connection could not be established because the target computer was actively refusing it.
does anyone know how to connect to 192.168.1.14? Devices on the network will not connect to localhost
[Updated on: Mon, 15 November 2021 18:42] Report message to a moderator
|
|
|
Powered by
FUDForum. Page generated in 0.03550 seconds