Mqtt broker not working in remote access

0

I have created an ec2 instance and install mosquitto broker on it and it working fine locally, both publishing and subscribing topics is working but it is not working remotely when I use the mqtt explorer no connection is establishing with broker, I have changed the config file also and listener and allow anonymous as I found on some help forum but still not working. I also edit the file with -c to force it to overwrite the previous one but still not working. If somebody can help me on it will be highly appreciable.

Zubair
preguntada hace 6 meses166 visualizaciones
1 Respuesta
0

Check that the Security Group associated with your EC2 instance is allowing the ports and protocols used by your Mosquitto broker.

I would also suggest that you look into using AWS IoT Core instead of hosting and managing your own MQTT broker.

Have also a look at https://docs.aws.amazon.com/iot/latest/developerguide/what-is-aws-iot.html

AWS
EXPERTO
respondido hace 6 meses
  • In the default settings ssh and source is custom, later I also added tcp and source is custom but still not working,

    Right now I am just experimenting with it, may be later I will explore aws iot core and will shift to it but before that I want to use mqtt broker

No has iniciado sesión. Iniciar sesión para publicar una respuesta.

Una buena respuesta responde claramente a la pregunta, proporciona comentarios constructivos y fomenta el crecimiento profesional en la persona que hace la pregunta.

Pautas para responder preguntas