> ## Knowledge Base Index
> Fetch the complete knowledge base index at: https://support.cthings.io/sitemap.xml
> Use this file to discover available pages before exploring further.
> Pure-Markdown content can be obtained by appending a '.md' suffix to the content URLs listed in the sitemap (without the trailing slash).

# How do I add a Milesight Gateway?

Adding a Milesight Gateway in cThings Cloud involves two stages:
Stage 1: Create the Gateway **in cThings Cloud**.
Stage 2: Add a new destination on the **Milesight dashboard**.

## Create the Gateway in cThings Cloud

To create a new Gateway in cThings Cloud, follow these steps:

###### 1. Create a new Network Node

* Navigate to the Network Nodes page by clicking **Network** ****in the menu on the left-hand side.
* Click **New Network Node **in the top-right corner of the page.

![Clicking the New Network Node button](https://storage.crisp.chat/users/helpdesk/website/66a70a6ed8fbb400/screenshot-2025-03-04-at-10591_d3jhy0.png)
        
###### 2. Select the type of Network Node

* Select **Gateway**.

![Selecting the node type](https://storage.crisp.chat/users/helpdesk/website/66a70a6ed8fbb400/screenshot-2025-03-03-at-15444_irg85z.png)
    
###### 3. Select the Gateway Manufacturer

* Choose **Milesight** as the Gateway manufacturer.

![Selecting the manufacturer](https://storage.crisp.chat/users/helpdesk/website/66a70a6ed8fbb400/screenshot-2025-03-03-at-16055_1i6kv30.png)
    
###### 4. Select the Gateway Product

* Select the relevant Milesight product.
* E.g **Milesight UG65.**

![Selecting the product](https://storage.crisp.chat/users/helpdesk/website/66a70a6ed8fbb400/screenshot-2025-03-03-at-16074_1ommuxi.png)

###### 5. Enter the required details

* **Name**: Give the Gateway a descriptive name.
* **Serial Number**: Copy the serial number from the Milesight dashboard – found under **Serial Number** (see screenshot below).
* **Parent Asset**: Select the Asset under which to add your Gateway.
* **Provider: **Select the Gateway Provider.
* Click **Next.**

![Entering required gateway details](https://storage.crisp.chat/users/helpdesk/website/66a70a6ed8fbb400/screenrecording2025-03-04at113_we2mo7.gif)
![Retrieving the gateway serial number from the Milesight dashboard](https://storage.crisp.chat/users/helpdesk/website/66a70a6ed8fbb400/milesightserialnumber_izy6sz.png)

###### 6. Navigate to the **LoRa** tab and configure the following:

* **Network Server: **Select ** AWS IoT LoRaWAN.**
* **Gateway EUI:** Find this in the Milesight dashboard by clicking **Packet Forwarder** from the left-hand menu and copying the Gateway EUI (See screenshot below).
* **Gateway Profile: **Select **EU868 **as the gateway profile.
* Click **Next**.

![Select the communication interface your device will be using](https://storage.crisp.chat/users/helpdesk/website/66a70a6ed8fbb400/screenrecording2025-03-03at172_10bhbqr.gif)
![Retrieving the Gateway EUI from the Milesight dashboard](https://storage.crisp.chat/users/helpdesk/website/66a70a6ed8fbb400/milesightgatewayeuid_mgree7.png)
  
###### 7. Create the Gateway

* Review the details on the summary page
* Click **Create Node** to create the Gateway

## Adding a new destination on the Milesight dashboard

Once the network node is set up in cThings Cloud, you next need to add a new destination on the Milesight dashboard.

|| Before adding a new destination, make sure to disable any existing ones to prevent conflicts.

###### 1. Add a new Destination

* Go to the **Milesight dashboard**.
* Click **Packet Forwarder** from the left-hand menu.
* Click the **plus (+) button** to add a new destination.

![Adding a new destination on the Milesight dashboard](https://storage.crisp.chat/users/helpdesk/website/66a70a6ed8fbb400/milesightadddestination_1hrgbm.png)

###### 2. Select Destination type

* Select **Basic Station** as the destination type.

![](https://storage.crisp.chat/users/helpdesk/website/66a70a6ed8fbb400/screenshot-2025-03-04-at-09112_rp8pn8.png =800x674)

###### 3. Copy the CUPS URI and generate Gateway certificates on cThings Cloud

* Go to the newly created **Gateway** on cThings cloud.
* Click **Network Node **in the top right hand corner of the page.
* Then select **Generate Certificates** from the dropdown menu.
* Copy the **CUPS URI** and paste it into the **URI** input on the Milesight dashboard
* Click the **Download Certificates** button.

![Copying the CUPS URI and downloading certificates on cThings Cloud](https://storage.crisp.chat/users/helpdesk/website/66a70a6ed8fbb400/screenshot-2025-03-04-at-09154_y0iv5h.png =800x617)

###### 4. Rename the downloaded certificate files as follows:

* Change the file ending in `.server_certificate.pem` to `.server_certificate.trust`.
* Change the file ending in `.gateway_certificate.pem` to `.gateway_certificate.crt`.

###### 5. Upload the certificates to the Milesight dashboard by selecting the correct files for each input

* **CA File (.trust):** Click **Browse**, then select the `*.trust` file.
* **Client Certificate File (.crt):** Click **Browse**, then select the `*.crt` file.
* **Client Key File (.key):** Click **Browse**, then select the `*.key` file.

|| After selecting each file, click the Import button to upload it, then click Save.

![Importing certificates on the Milesight dashboard](https://storage.crisp.chat/users/helpdesk/website/66a70a6ed8fbb400/screenrecording2025-03-03at172_tsjwne.gif)

###### 6. Save your changes

* Click **Save and Apply** to save all your changes.

![Clicking Save & Apply](https://storage.crisp.chat/users/helpdesk/website/66a70a6ed8fbb400/milesightsaveandapply_1x98ds9.png)

## Conclusion
You’ve successfully added a Milesight Gateway on cThings Cloud. The Gateway is now ready to use and can be managed from the Networks page.

For further assistance, feel free to contact us directly. We’re here to help!