I feel like all this was working fine last week, and all of a sudden I can't connect to a broker on my local network by IP.
I installed mosquitto via homebrew on 192.168.0.3 and started up the broker on that machine. Interestingly enough, when I use MQTTExplorer on Machine 192.168.0.3, I need to connect to mqtt://localhost or mqtt://127.0.0.1 (expected) but I cannot use mqtt://192.168.0.3 to connect to it (I find this odd).
Likewise, I can't use MQTTTool from my iPhone to connect to mqtt://192.168.0.3 when I'm on the same local network.
The broker is running on the standard port.
I'm not a network guy, can anyone point out my (probably obvious) mistake in being unable to connect to the broker running on 192.168.0.3 from another machine inside my local network?
EDIT: Ping's are working between the devices no problem.
EDIT:
When I start the broker, I see this message:
1608482209: mosquitto version 2.0.2 starting
1608482209: Config loaded from /usr/local/etc/mosquitto/mosquitto.conf.
1608482209: Starting in local only mode. Connections will only be possible from clients running on this machine.
1608482209: Create a configuration file which defines a listener to allow remote access.
1608482209: Opening ipv4 listen socket on port 1883.
1608482209: Opening ipv6 listen socket on port 1883.
1608482209: mosquitto version 2.0.2 running
Starting in local only mode makes it very explicit that I need to change a configuration setting, not sure which one though.
Here's the file:
https://gist.github.com/akmjenkins/27f2d9216031e5422296ed223c066d05
Thanks for the release notes, romkey, I updated two lines in the config file to look like this
listener 1883
allow_anonymous true
and now it behaves similarly to pre-2.0. It's certainly not good practice going forward, but I just looking to understand what had changed.