Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Mosquitto » Cannot connect to Mqtt brober(Cannot connect to Mqtt broker)
Cannot connect to Mqtt brober [message #1847275] Thu, 21 October 2021 15:00 Go to next message
Alex B is currently offline Alex BFriend
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 ...
index.php/fa/41165/0/
index.php/fa/41166/0/

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.
index.php/fa/41167/0/

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.
index.php/fa/41168/0/
index.php/fa/41169/0/

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 1124 times)
  • Attachment: 2.jpg
    (Size: 71.12KB, Downloaded 1114 times)
  • Attachment: 3.jpg
    (Size: 14.94KB, Downloaded 1132 times)
  • Attachment: 4.jpg
    (Size: 29.70KB, Downloaded 1108 times)
  • Attachment: 5.jpg
    (Size: 38.11KB, Downloaded 1106 times)
Re: Cannot connect to Mqtt broker [message #1847940 is a reply to message #1847275] Sun, 14 November 2021 18:49 Go to previous message
Ma rk is currently offline Ma rkFriend
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

Previous Topic:Mosquitto Dynamic Security not saving
Next Topic: if (topic == "TEST")
Goto Forum:
  


Current Time: Fri May 03 00:11:51 GMT 2024

Powered by FUDForum. Page generated in 0.04179 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top