I have an MQTT broker (Mosquitto) installed on my laptop.
I can subscribe and publish messages locally. (in cmd or with mqtt.fx)
Now I would like to publish a message with an ESP8266 via WLAN. My ESP8266 has a Wi-Fi connection, but I can't connect to my broker. To do this, I have to enter the IP address of the broker (from my laptop) and the port (is 1883).
Did I misunderstand something or does someone know how to connect to my broker?
So far right. However, the broker must also accept the connection to the ESP (it must not listen to 127.0.0.1) and any firewalls must enable the port.