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
已提問 6 個月前檢視次數 166 次
1 個回答
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
專家
已回答 6 個月前
  • 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

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南