I'm running Mosquitto 2.0.7 as a docker.
If I try to use mosquitto_sub from within the docker I can do it. If I try it from a different machine I get connection refused.
The docker is running exposing port 1883 and 9001. The docker is runing on host network. There is no error on the docker log.
Thanks