Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Mosquitto » Local mode only(Cannot receive external connections in Mosquitto)
Local mode only [message #1848496] Sun, 05 December 2021 14:49 Go to next message
stuart barnes is currently offline stuart barnesFriend
Messages: 3
Registered: April 2017
Junior Member
Hi,

I have setup Mosquitto on my windows 10 machine but it starts in Local only mode and will not accept external connections, I have been googling all day and have tried several things but to no avail. I know there have been big security changes in Mosquitto since I last used it. This is what I have in my config file:

listener 1883 0.0.0.0
allow_anonymous true
password_file C:\mosquitto\p2

The encrypted password file was created using the utility and is in the Mosquitto folder called p2.txt, each time I have changed something I have stopped the Mosquitto service and then started again, in verbose mode it says that it is starting in local mode, any help would be appreciated

P.S. ports are forwarded in my router

Thanks
Stuart

[Updated on: Sun, 05 December 2021 14:50]

Report message to a moderator

Local mode only with Docker [message #1848534 is a reply to message #1848496] Tue, 07 December 2021 06:52 Go to previous message
Yaron Shahrabani is currently offline Yaron ShahrabaniFriend
Messages: 1
Registered: July 2009
Junior Member
I'm experiencing the exact same thing with the latest docker.

I'm trying to run the official docker container with the following docker compose segment:
  mqtt:
    container_name: mosquitto
    image: eclipse-mosquitto:latest
    ports:
      - "1883:1883"
      - "9002:9001"
    volumes:
      - ${PWD}/mqtt-config:/mqtt/config:ro
      - ${PWD}/mqtt-log:/mqtt/log
      - ${PWD}/mqtt-data:/mqtt/data


And the following config:

persistence true
persistence_location /mosquitto/data/
log_dest file /mosquitto/log/mosquitto.log

port 1883
allow_anonymous true


I even tried adding a `password_file` to avoid the error but I got the exact same one.

The error is:
Starting in local only mode. Connections will only be possible from clients running on this machine.
Create a configuration file which defines a listener to allow remote access.


I got the idea of adding a password file from the link in the line below this error.
From what I read and from all the examples I found it should work but It doesn't, what am I doing wrong?
Previous Topic: if (topic == "TEST")
Next Topic:Minimum RAM requirements
Goto Forum:
  


Current Time: Thu May 02 19:02:52 GMT 2024

Powered by FUDForum. Page generated in 0.03541 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top