# MQTT Connection works from Raspian but not Windows

**URL:** <https://discourse.nodered.org/t/mqtt-connection-works-from-raspian-but-not-windows/49304>\
**Category:** General\
**Created:** [4 August 2021 04:55 UTC](https://discourse.nodered.org/t/mqtt-connection-works-from-raspian-but-not-windows/49304 "2021-08-04T04:55:09Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![geoffarobinson](https://avatars.discourse-cdn.com/v4/letter/g/439d5e/32.png) [@geoffarobinson](https://discourse.nodered.org/u/geoffarobinson)\
**Post date:** [4 August 2021 04:55 UTC](https://discourse.nodered.org/t/mqtt-connection-works-from-raspian-but-not-windows/49304/1 "2021-08-04T04:55:09Z")

</div>

Hi All,  
I can make a succesful MQTT connection (TLS) from a RaspberryPi to an Azure IoT Hub using SAS Token authentication but when I try the identical flow from a Windows10 machine it won't connect. I'm just using the vanilla MQTT sender node rather than the specialised (Azure IoT) one but as I say, it works well from Raspian.

---

<div class="post-metadata">

**Author:** ![Gunner](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/gunner/32/43582_2.png) [@Gunner](https://discourse.nodered.org/u/Gunner)\
**Post date:** [4 August 2021 05:08 UTC](https://discourse.nodered.org/t/mqtt-connection-works-from-raspian-but-not-windows/49304/2 "2021-08-04T05:08:07Z")

</div>

Hello and welcome to the forum.

This is just a guess, what with general lack of details provided... Firewall? Antivirus?

Perhaps more info will help us help you? Versions, errors, flow used... etc.

---

<div class="post-metadata">

**Author:** ![geoffarobinson](https://avatars.discourse-cdn.com/v4/letter/g/439d5e/32.png) [@geoffarobinson](https://discourse.nodered.org/u/geoffarobinson)\
**Post date:** [4 August 2021 05:36 UTC](https://discourse.nodered.org/t/mqtt-connection-works-from-raspian-but-not-windows/49304/3 "2021-08-04T05:36:26Z")

</div>

Thanks for the reply - in fact I've just figured out the problem. It was the SAS Token - it's generated with a lot of unnecessary stuff at the start that I had forgotten to remove.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [18 August 2021 05:36 UTC](https://discourse.nodered.org/t/mqtt-connection-works-from-raspian-but-not-windows/49304/4 "2021-08-18T05:36:47Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
