---
title: "Comment by Jaime Stuardo on \"Basic MQTT broker with C#\" | Hashnode"
description: "Hello... I ran this basic sample, but, how can I connect to it? I am using MQTTX client while I am running the broker locally (run by mean of Visual Studio). I"
url: "https://hashnode.com/posts/basic-mqtt-broker-with-c-sharp/61eb28425fbc177f9f3b3595/comment/679e6f900f45826001e352c3"
---

[Discussion](https://hashnode.com/posts/basic-mqtt-broker-with-c-sharp/61eb28425fbc177f9f3b3595)

Comment [Basic MQTT broker with C#](https://hashnode.com/posts/basic-mqtt-broker-with-c-sharp/61eb28425fbc177f9f3b3595)

[Jaime Stuardo](https://hashnode.com/@desytec)

[Feb 1, 2025](https://hashnode.com/posts/basic-mqtt-broker-with-c-sharp/61eb28425fbc177f9f3b3595/comment/679e6f900f45826001e352c3)

Hello... I ran this basic sample, but, how can I connect to it? I am using MQTTX client while I am running the broker locally (run by mean of Visual Studio).

I am not able to connect from the client. I tried with mqtt://localhost, mqtts://localhost, ws://localhost and wss://localhost. Nothing works.
