> For the complete documentation index, see [llms.txt](https://docs.vega365.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.vega365.com/nidhi/getting-started/ports.md).

# Ports

## Between the Management Client and the recording servers

The Management Client connects to the Nidhi Recorder Service on each recording server. The recording server never opens a connection back.

| Port          | Direction                               | Used for                                                                                                                                                                                                                                                                                                                                                                                                                                                                             |
| ------------- | --------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| **TCP 48984** | Management Client PC → recording server | The Nidhi Recorder Service, for the Dashboard, setup and settings. Plain HTTP by default, or HTTPS on the same port (see [Connection Security](https://docs.vega365.com/nidhi/management-client/site-settings.md#connection-security)). Nidhi opens this port in Windows Firewall itself (rule **Nidhi Recorder Service**, from any address). Limit it to the Management Client PCs (see [Security](https://docs.vega365.com/nidhi/security/security.md#the-management-connection)). |

For **Software management** (installing, updating and removing Nidhi on the recording servers from the Management Client), also open on each recording server:

| Port                                      | Used for                                                | Windows Firewall rule group                     |
| ----------------------------------------- | ------------------------------------------------------- | ----------------------------------------------- |
| **TCP 445** (SMB)                         | Copies Nidhi to the recording server (`\\recorder\C$`). | *File and Printer Sharing (SMB-In)*             |
| **TCP 135** and **TCP 49152–65535** (RPC) | Installs, starts and stops the service.                 | *Remote Service Management* (RPC and RPC-EPMAP) |

If these ports can't be opened, install Nidhi [on the recording server itself](https://docs.vega365.com/nidhi/getting-started/installation.md#on-a-recording-server) instead.

## From each recording server to the internet

| Port                | To                                                                                                                  | Used for                                                                                                                                                            |
| ------------------- | ------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **TCP 443** (HTTPS) | The cloud storage: `s3.<region>.amazonaws.com`, `storage.googleapis.com`, or your S3-compatible provider's endpoint | The cloud drive: uploads and playback.                                                                                                                              |
| **TCP 443** (HTTPS) | `secure.softwarekey.com`                                                                                            | Online licence activation, renewal and release. Not needed with [offline activation](https://docs.vega365.com/nidhi/getting-started/license-activation.md#offline). |

## To the XProtect Event Server

[Failure Alerts](https://docs.vega365.com/nidhi/management-client/failure-alerts.md) are sent from each recording server to the XProtect Event Server as generic events:

| Port                      | Direction                       | Used for                                                                                         |
| ------------------------- | ------------------------------- | ------------------------------------------------------------------------------------------------ |
| **TCP 1238** (by default) | Recording server → Event Server | Nidhi's alerts. The port is the one set on the XProtect generic event data source Nidhi creates. |
