Page 1 of 1

MQTT not connected with Windows 11

Posted: Mon May 12, 2025 10:49 am
by Nico595
Hello,

I check my Pc App MQTT project with some Windows version. All good with Windows 7, Windows 10 but with Windows 11 I have the message "not connected". The return of MQTTClient1::Connect() Component is 0.

I tried with MQTT Explorer tool, I can connect and subscribe topic in mqtt and ws from the same PC.
I opened 1883 and 8883 tcp port in the Windows Firewall, I also open all communications from the FC runtime exe file.

"not connected" message is displayed when Is_Connected = 0 in the first condition of MQTT connection step.

I have only this problem with Windows 11, others Windows work fine with the same Pc App project.

Please can you check this ?
It's may be a new problem from the Runtime file.

EDIT: I tried with the local IP of the Host, but same problem.



Thank you.

PS: I know that Windows 11 is again a very bad OS from Microsoft but I must check this for my customers.

Re: MQTT not connected with Windows 11

Posted: Mon May 12, 2025 12:07 pm
by Nico595
On the Windows 11 computer I have "Ethernet 2"

I tried with "AutoDetect" in the Network Interface Parameter of NetworkComms Component but without result.

Re: MQTT not connected with Windows 11

Posted: Mon May 12, 2025 2:10 pm
by chipfryer27
Hi

I've never got AutoiDetect to actually detect in W11, so I try each option until the field gets populated.

Regards

Re: MQTT not connected with Windows 11

Posted: Mon May 12, 2025 2:23 pm
by Nico595
Hi Chipfryer,

Thank you for your answer.

In fact, I have not FC10 Installed on the Windows 11 Computer, only the Pc App project with the runtime files.
May be I can create a box with the Channel option to change it if "0" don't work.

I will try this :)

EDIT: I added box to enter the number of Network comms, when I wrote 1 and clicked on the connect button, Pc App was connected :)

Thank you so much for your Help.