MQTT not connected with Windows 11

Discuss PC Developer and Web Developer projects and features here.
Post Reply
User avatar
Nico595
Posts: 87
http://meble-kuchenne.info.pl
Joined: Tue Jul 04, 2023 4:17 pm
Has thanked: 17 times
Been thanked: 3 times

Flowcode v10 MQTT not connected with Windows 11

Post 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.

User avatar
Nico595
Posts: 87
Joined: Tue Jul 04, 2023 4:17 pm
Has thanked: 17 times
Been thanked: 3 times

Re: MQTT not connected with Windows 11

Post 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.

chipfryer27
Valued Contributor
Posts: 1535
Joined: Thu Dec 03, 2020 10:57 am
Has thanked: 352 times
Been thanked: 550 times

Re: MQTT not connected with Windows 11

Post by chipfryer27 »

Hi

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

Regards

User avatar
Nico595
Posts: 87
Joined: Tue Jul 04, 2023 4:17 pm
Has thanked: 17 times
Been thanked: 3 times

Re: MQTT not connected with Windows 11

Post 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.

Post Reply