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
gefragt vor 6 Monaten166 Aufrufe
1 Antwort
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
EXPERTE
beantwortet vor 6 Monaten
  • 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

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen