---
title: Connect a Client
slug: uns/connect-a-client
description: Learn how to connect a client in Litmus UNS. 
docTags: 
createdAt: 2023-12-13T13:43:19.826Z
---

You can connect to Litmus UNS through an MQTT client such as [MQTT Explorer](https://mqtt-explorer.com/).

# Before You Begin

You will need to [Add a MQTT Account](docId\:RjeFZNOr7o0fQ8DLlvB5L) and use the username and password to connect to Litmus UNS.&#x20;

# Step 1: Access Connection Parameters

To access connection parameters for the different types of MQTT connections, navigate to the Litmus UNS dashboard and click **Connect**.&#x20;

![](https://api.archbee.com/api/optimize/SSUUxKZUk9bFTEPNn_6Zo/vud9pFmfNaGSiIFEHSWac_image.png "Connect button")

From the *Connect to IDE* dialog, review the hostnames and port numbers required for each type of MQTT connection. You can also download the certificate for Litmus UNS.&#x20;

::Image[]{src="https://api.archbee.com/api/optimize/SSUUxKZUk9bFTEPNn_6Zo/02aDQ4tKJdUyHt_B0cVFR_image.png" size="50" width="394" height="505" position="center" caption="Connection parameters for MQTT connections" showCaption="true"}

# Step 2: Connect to Client

Once you have defined the type of connection you want to create, you can connect to Litmus UNS through a client such as MQTT Explorer. For these steps, we will use the MQTT Explorer client and create an MQTT connection.&#x20;

**To connect to a client:**

1. Open MQTT Explorer.&#x20;
   The *MQTT Connection* dialog displays.&#x20;
2. Enter a name for the connection.&#x20;
3. For *Protocol*, select **mqtt://**.&#x20;
4. For *Host*, enter the hostname from *Step 1: Access Connection Parameters*.&#x20;
5. For *Port*, enter **1883**. This is the port number to configure an MQTT connection.&#x20;
   **Note**: For private beta, the port number is set to 1883. When Litmus UNS is released for general availability, you will be able to customize the port.&#x20;
6. Enter the appropriate *Username&#x20;*&#x61;nd *Password&#x20;*&#x66;or the account you want to use to connect. See [Add a MQTT Account](docId\:RjeFZNOr7o0fQ8DLlvB5L) to learn more.&#x20;
7. Click **Advanced**.&#x20;
8. For **MQTT Client ID**, enter or paste the Client ID for the user. See [Add a MQTT Account](docId\:RjeFZNOr7o0fQ8DLlvB5L) to learn more.&#x20;
9. Click **Back**.&#x20;
10. Click **Connect**.&#x20;
    The client should successfully connect.&#x20;

