Comments on: Install Mosquitto MQTT Broker on Raspberry Pi https://randomnerdtutorials.com/how-to-install-mosquitto-broker-on-raspberry-pi/ Learn ESP8266, ESP32, Arduino, and Raspberry Pi Wed, 02 Jul 2025 10:51:18 +0000 hourly 1 https://wordpress.org/?v=6.8.2 By: Sara Santos https://randomnerdtutorials.com/how-to-install-mosquitto-broker-on-raspberry-pi/#comment-1021813 Tue, 01 Apr 2025 09:39:38 +0000 http://randomnerdtutorials.com/?p=31713#comment-1021813 In reply to Saad.

Hi.
Unfortunately, not yet.
Regards,
Sara

]]>
By: Saad https://randomnerdtutorials.com/how-to-install-mosquitto-broker-on-raspberry-pi/#comment-1020772 Sat, 29 Mar 2025 11:44:55 +0000 http://randomnerdtutorials.com/?p=31713#comment-1020772 In reply to Rui Santos.

Hi Rui,
Is there a blog regarding Rosen’s suggestions on RandomNerdTut?
It would also benefit me if there was any.

Thanks.
Saad

]]>
By: Najad https://randomnerdtutorials.com/how-to-install-mosquitto-broker-on-raspberry-pi/#comment-1003608 Wed, 29 Jan 2025 12:30:19 +0000 http://randomnerdtutorials.com/?p=31713#comment-1003608 In reply to Sen Can.

Place your custom configuration files in the /etc/mosquitto/conf.d/ directory, which is included by default in Mosquitto’s configuration. To add listener 1883 and allow_anonymous false, you should create a new configuration file inside /etc/mosquitto/conf.d/.

do not edit mosquitto.conf file

]]>
By: Sara Santos https://randomnerdtutorials.com/how-to-install-mosquitto-broker-on-raspberry-pi/#comment-988685 Wed, 04 Dec 2024 10:14:16 +0000 http://randomnerdtutorials.com/?p=31713#comment-988685 In reply to Shannon.

Hi.
We usually recommend using ngrok services to open a secure tunnel to your Raspberry Pi.
Another good alternative is using Clouflare Tunnels.
Regards,
Sara

]]>
By: Shannon https://randomnerdtutorials.com/how-to-install-mosquitto-broker-on-raspberry-pi/#comment-988528 Tue, 03 Dec 2024 18:17:15 +0000 http://randomnerdtutorials.com/?p=31713#comment-988528 Great tutorial. I have an account on a web host service with a fixed IP. I would really love to use it to host my MQTT broker but all my attempts and installing the required pieces have failed. Then I saw your tutorial. I wonder, is it possible to open the Raspberry Pi broker to the outside internet? I’m guessing I would need to use a Dynamic DNS to nail down the IP but I’m afraid I just don’t have all the pieces of this puzzle. Is it possible?

]]>
By: Sara Santos https://randomnerdtutorials.com/how-to-install-mosquitto-broker-on-raspberry-pi/#comment-987517 Fri, 29 Nov 2024 11:07:05 +0000 http://randomnerdtutorials.com/?p=31713#comment-987517 In reply to Diederik.

Hi.
Maybe it was some problem with the server.
It is working as expected for me.
Can you test it again?
Regards,
Sara

]]>
By: Diederik https://randomnerdtutorials.com/how-to-install-mosquitto-broker-on-raspberry-pi/#comment-987516 Fri, 29 Nov 2024 10:39:13 +0000 http://randomnerdtutorials.com/?p=31713#comment-987516 Hi Sara,
Much thanks for this very clear tutorial. It worked out for me just fine.

The link behind “Testing Mosquitto Broker and Client on Raspbbery Pi” on this page returns nothing. (An ever spinning wheel).

Are you aware of that ? I’d thought I let you know.

Rgds,
Diederik from Netherlands.

]]>
By: Sara Santos https://randomnerdtutorials.com/how-to-install-mosquitto-broker-on-raspberry-pi/#comment-976966 Tue, 29 Oct 2024 09:49:32 +0000 http://randomnerdtutorials.com/?p=31713#comment-976966 In reply to Jakl1.

Hi.
The address already in use is not an error.
You can still connect to the broker. Just make sure to use the username and password when trying to establish a connection.
Regards,
Sara

]]>
By: Jakl1 https://randomnerdtutorials.com/how-to-install-mosquitto-broker-on-raspberry-pi/#comment-976932 Tue, 29 Oct 2024 08:37:20 +0000 http://randomnerdtutorials.com/?p=31713#comment-976932 Hello Sara,

Thank a lot for this tutorial and the others.

I have an issue when I try to enable the remote access.
with “allow anonymous” mosquitto work fine and I can connect an other device
If I follow your tutorial and try to set User/password, this doesn’t run and I get “error : address already in use ” on port 1883.
If I change the port to 1884 in mosquitto.conf it’s run correctly.
My question is: Why I can’t connect on 1883? (all mqtt devices have set on 1883).

Thank for your help
Jakl1

]]>
By: Sen Can https://randomnerdtutorials.com/how-to-install-mosquitto-broker-on-raspberry-pi/#comment-929952 Mon, 24 Jun 2024 17:29:25 +0000 http://randomnerdtutorials.com/?p=31713#comment-929952 Sara thank you for answering the questions for all these years.
I have tried with both rpi3 Ang rpi5, installed broker and runs locally both mosquitto_sub and mosquitto_pub okay. I add listener 1883
allow_anonymous true

To mosquitto.conf file and save. Then I reboot RPi and check:
Sudo systemctl status mosquitto

Broker fails. I must be doing something wrong.
Best regards.

]]>