• Skip to main content
  • Skip to primary sidebar

RNTLab.com

The Ultimate Shortcut to Learn Electronics and Programming with Open Source Hardware and Software

  • Courses
  • Forum
    • Forum
    • Ask Question
  • Shop
  • Account
  • Blog
  • Login

Mosquitto mqtt local only proble,

Q&A Forum › Category: Raspberry Pi › Mosquitto mqtt local only proble,
0 Vote Up Vote Down
Steve Fisch asked 4 months ago

Here is my entre \etc\mosquitto\mosquitto.conf file
Place your local configuration in /etc/mosquitto/conf.d/
#
# A full description of the configuration file is at
# /usr/share/doc/mosquitto/examples/mosquitto.conf.example
pid_file /run/mosquitto/mosquitto.pid
persistence true
persistence_location /var/lib/mosquitto/
log_dest file /var/log/mosquitto/mosquitto.log
include_dir /etc/mosquitto/conf.d
listener 1883
allow_anonymous false
 
Even after restarting the raspberry pi, I still get the message:
 
$ mosquitto -v
1735148322: mosquitto version 2.0.11 starting
1735148322: Using default config.
1735148322: Starting in local only mode. Connections will only be possible from clients running on this machine.
1735148322: Create a configuration file which defines a listener to allow remote access.
1735148322: For more details see https://mosquitto.org/documentation/authentication-methods/
1735148322: Opening ipv4 listen socket on port 1883.
1735148322: Error: Address already in use
1735148322: Opening ipv6 listen socket on port 1883.
1735148322: Error: Address already in use
 
I know that I am missing something simple, but after checking this forum and others, I cannot figure out what I am omitting or doing wrong.
 
As always, thanks in advance for your help.
Steve

Question Tags: mosquitto local only
3 Answers
0 Vote Up Vote Down
Sara Santos Staff answered 4 months ago

Hi.
Did you save the configuration file after exiting?
What tutorial exactly are you following?
Regards,
Sara

0 Vote Up Vote Down
Steve Fisch answered 4 months ago

I reloaded mosquito and the conf file. It now works.

Thanks,
Steve

0 Vote Up Vote Down
Sara Santos Staff answered 4 months ago

Great.
I’ll mark this issue as resolved. If you need further help, you just need to open a new question in our forum.
Regards,
Sara

Primary Sidebar

Login to Ask or Answer Questions

This Forum is private and it’s only available for members enrolled in our Courses.

Login »

Latest Course Updates

  • [New Edition] Build ESP32-CAM Projects eBook – 2nd Edition April 16, 2025
  • [eBook Updated] Learn ESP32 with Arduino IDE eBook – Version 3.2 April 16, 2025

You must be logged in to view this content.

Contact Support - Refunds - Privacy - Terms - MakerAdvisor.com - Member Login

Copyright © 2013-2025 · RandomNerdTutorials.com · All Rights Reserved

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.