Mosquitto mqtt can't get it to work

Not sure if someone can help me with this.
I installed mosquitto in a docker and everything looks file
This is what I read in the logfile

1671825240: mosquitto version 2.0.15 starting
1671825240: Config loaded from /mosquitto/config/mosquitto.conf.
1671825240: Opening ipv4 listen socket on port 1883.
1671825240: Opening ipv6 listen socket on port 1883.
1671825240: Opening ipv4 listen socket on port 9001.
1671825240: Opening ipv6 listen socket on port 9001.
1671825240: mosquitto version 2.0.15 running

this is the compose file

docker run \
 --name mosquitto \
 --net=bridge \
 -d \
 -p 1883:1883 \
 -p 9001:9001 \
  -v /volume1/docker/mosquitto/config:/mosquitto/config \
  -v /volume1/docker/mosquitto/data:/mosquitto/data \
  -v /volume1/docker/mosquitto/log:/mosquitto/log \
  --restart=always \
  eclipse-mosquitto:latest

when I want to connect with Openhab I get the following error

io.netty.channel.ConnectTimeoutException: connection timed out: /192.168.100.51:1883

Openhab 3.4.0.RC1 is running in a docker with IP address 192.168.100.90

The first thing I would do is using in external mqtt client and try to connect.

By this you can identify if the issue is with openhab, that cannot connect as a client, or the issue is with your mqtt installation.

Depending on the results check the networking, if the IP & port is not blocked but accessable …

Im pretty sure port 9001 is reserved for log viewer. Im not sure if that is the problem?

This topic was automatically closed 41 days after the last reply. New replies are no longer allowed.