Closed Ridyu closed 3 months ago
I have a hard time deciphering what the issue is;
But assuming it's about the fact that only some clients can connect;
*.local
domains might be looked up via MDNS; perhaps your device doesn't resolve addresses via MDNS.
Previous issue you mentioned that all are on the same net, is this still the case?
If the issue is that the server is moved, and clients cannot connect to the new server, perhaps that machine isn't advertising it's presence or is on a different net.
Best solution is probably to just use a proper DNS server.
@Daedaluz, Thank you for your quick response.
The condition is that the Mosquito settings on the two different PCs are the same. In the case of 'PC' A, IoT equipment is connected to Local MQTT to communicate, but in the case of 'PC' B, IoT equipment can not connected to Local MQTT server.
I used the same IoT equipment. Of course, I have reboot my PC after setting the hostname of my PC properly. Is there a setting I don't know to access mosquitoes using hostname.local address?
Both windows machines? I'm not a frequent windows user, but see if network discovery is tured off somehow. Unfortunately I do not know the location of this specific setting.
I don't think this issue is related to mosquitto specifically.
Yes. Both Windows machines. I see. Thank you for your answer.
Please close if nothing else.
(Refer url: https://github.com/eclipse/mosquitto/issues/3093)
I am implementing communication using local MQTT. By the method mentioned above, some device(Iot Machine) were able to access the address 'hostname.local' from an external device. I created a Local MQTT server under the same conditions, but there are servers that can be accessed from outside and those that cannot
They also allowed both inbound and outbound ports on the firewall. (about port 1883) In addition, both 'listener 1883' and 'allow_anonymous true' in the mosquitto.conf file were set. And run mqtt successfully using cmd. However, although it was possible on a specific pc, the iot device could not access the Local MQTT server generated by another pc. What kind of settings should I set aside?
The screenshot below means that an IOT device communicates with the Local MQTT Server on a specific PC (Host: hostname.local / Port: 1883) This is the [mosquitto.conf] File I set. What more should I set? mosquitto.zip