I hava a fresh install of OpenHABian 3 on my RasPi 4.
Using putty I installed mosquitto and entered a password.
Installation told me mosquitto is up and running.
I found a similar thread here, but it did not help with my problem.
I already tried port 8883 and 1883 as well - both same problem.
What is the right port please?
What I am missing?
BTW: where do I find the mosquitto.log to get further information?
Whichever you want to use, there is no “right” one. 1883 is standard MQTT port, 8883 the common one for encrypted MQTT.
Point is, you have to set mosquitto up to work for your desired way of making use of MQTT, it does not out of the box.
You need to configure mosquitto for authentication before it’ll allow to connect.
FWIW, I’ve changed that in openHABian so new Mosquitto installation now should have allow_anonymous true.
Note this won’t relieve you from the task of understanding and configuring Mosquitto, that cannot and never will happen upfront.