Port opening for MQTT

Hello,

I would like to know if I need to open ports (in or out) to do MQTT communication (port 1883 or port 8883) by IT people.

I currently have a system that works very well in the office and another that does not work at a client at the level of the MQTT connection (Internet and VPN connection are good).

With the Flexy in my office (all ports are open for output) and I noticed that the MQTT communication works even if the VPN is disabled.

Does the MQTT communication go through the VPN?

I am using a Flexy 202 with a FLX 3101 card and Firmware version: 12.2s1

Thanks
Christian

Hello @CFrancoeur,

The MQTT communications are going out over the specified port and not going though the VPN. You will need to allow the outgoing data over those ports to the MQTT unless the server is located within the company network.

1 Like

Hi Deryck,

Is there a particular reason why the MQTT does not go through the VPN?

Thanks again
Christian

Hello @CFrancoeur,

MQTT is a light weight messaging protocol designed to be served directly from a client, in our case a Flexy, to a server. A VPN connection does not need to occur. You could push data though the VPN but the server would need to establish a VPN to the Flexy.

Deryck