NickName
Member
Thanks for this (and the above post).
In the config we've used, it has this section for Mosquito
Code:mosquitto: image: eclipse-mosquitto:1.6 restart: always ports: - 127.0.0.1:1883:1883 volumes: - mosquitto-conf:/mosquitto/config - mosquitto-data:/mosquitto/data
But then I think we are only allowing http and https in - Is there a simple way to try and connect to it and see?
Hi @DaveW , yes that's the bit. I've since had time to look at the guide and other docs, didn't realise you were using Traefik also, my bad I can see in the TeslaMate docs that Traefik configuration only routes 80 & 443 to the outside world, all good.
As an aside, I think from that then if someone actually did want to use the MQTT from a cloud hosted instance then they'd have to add that into the Traefik configuration. MQTT uses TCP/IP on ports 1883 by default or 8883 if using SSL/TLS. If wanting to use MQTT but hosting locally without something like Traefik then it'd be open on the hosts port by default.
If running some other configuration then it's still worth looking out for unexpected open MQTT ports.
An easy way to check if the MQTT broker is accessible is to use one of the good open source MQTT clients. My preferred ones below in case you are interested.
MQTT-explorer for Windows, Mac, Linux
Setup connection
Attempt to connect and see topic messages
MQTTAnalyzer for iPhone
Setup connection
If connects then you'll be able to navigate to see topic messages