5
votes

I tried to install my broker and the broker mosquitto in Google virtual machine but I can not connect with my machine.

I searched for several days the answer, but it still fails.

Already allowed the port 1883 on the server and have also tried disabling the firewall.

The question is whether it is possible to install a MQTT broker on Google Cloud so that accepts publications and subscribe to my local machine or other device?

if yes, what should I do?

1
Did you have the chance to resolve the issue? If so, is it possible to post the answer so other people can benefit from itGeorge

1 Answers

2
votes
  • If you tried to disable your local firewall, that shouldn't be a problem, since any outbound connections are usually enabled by default.
  • If you tried to disable remote machine firewall, that is not enough, because there's Google Cloud network firewall in front of your VM.
  • Configure their firewall to allow incoming traffic to your port, TCP protocol. See https://cloud.google.com/compute/docs/networking

Note how you cannot disable network firewall, because it's a really bad idea. Instead you should configure your firewall to allow certain traffic and reject everything else.