> For the complete documentation index, see [llms.txt](https://wiki.datadike.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://wiki.datadike.com/pam/reference/ports.md).

# Ports and protocols

The default port each platform uses to reach an asset, and why the effective port is set per asset rather than globally.

## What this page covers

The port the solution uses to reach an **asset**, per platform. This is the list a firewall request is written from.

{% hint style="info" %}
It does not cover the ports the solution itself listens on. Those depend on how the instance was deployed and belong with the deployment documentation.
{% endhint %}

## How the port is decided

Two levels, and confusing them causes most "the firewall is open but it still fails" tickets:

| Level        | What it holds                                                                |
| ------------ | ---------------------------------------------------------------------------- |
| **Platform** | The **default** port for each protocol. A suggestion inherited by new assets |
| **Asset**    | The **effective** port actually used for that asset                          |

Changing the port on a platform does not move the assets already registered against it. Use **Sync protocols to assets** on the Platforms screen to push the change, or set the port on the individual asset.

Any port is accepted. The defaults below are conventions, not constraints — which is what makes the solution workable in environments that do not run services where the internet expects them.

## Hosts

| Platform      | Protocols and default ports                        |
| ------------- | -------------------------------------------------- |
| Linux         | SSH 22 · SFTP 22 · TELNET 23 · VNC 5900 · RDP 3389 |
| Gateway       | SSH 22 · SFTP 22 · TELNET 23 · VNC 5900 · RDP 3389 |
| Unix          | SSH 22 · TELNET 23 · VNC 5900 · RDP 3389           |
| AIX           | SSH 22 · TELNET 23 · VNC 5900 · RDP 3389           |
| BSD           | SSH 22 · TELNET 23 · VNC 5900 · RDP 3389           |
| macOS         | SSH 22 · TELNET 23 · VNC 5900 · RDP 3389           |
| Windows       | RDP 3389 · WinRM 5985 · SSH 22 · VNC 5900          |
| Windows-RDP   | RDP 3389 · WinRM 5985 · SSH 22 · VNC 5900          |
| Windows-TLS   | RDP 3389 · WinRM 5985 · SSH 22 · VNC 5900          |
| RemoteAppHost | RDP 3389 · WinRM 5985 · SSH 22                     |
| Other         | SSH 22 · SFTP 22 · TELNET 23 · VNC 5900 · RDP 3389 |

## Databases

| Platform   | Protocol and default port |
| ---------- | ------------------------- |
| Oracle     | oracle 1521               |
| MySQL      | mysql 3306                |
| MariaDB    | mariadb 3306              |
| PostgreSQL | postgresql 5432           |
| SQLServer  | sqlserver 1433            |
| MongoDB    | mongodb 27017             |
| Redis      | redis 6379                |
| Redis6+    | redis 6379                |
| ClickHouse | clickhouse 9000           |
| DB2        | db2 50000                 |
| Dameng     | dameng 5236               |

## Network devices

All device platforms — General, Cisco, Huawei, H3C, and Fortinet — use **SSH 22** and **TELNET 23**.

## Cloud and web

| Platform       | Protocol and default port |
| -------------- | ------------------------- |
| Kubernetes     | k8s 443                   |
| Vmware-vSphere | http 80                   |
| Website        | http 80                   |
| ChatGPT        | chatgpt 443               |

## Ports used by automations

Automations reach the target over a **management** protocol, which is not necessarily the protocol users connect with:

| Target               | Management protocol | Port |
| -------------------- | ------------------- | ---- |
| Linux                | SSH                 | 22   |
| Windows              | WinRM               | 5985 |
| Windows, alternative | OpenSSH             | 22   |

RDP is not a management protocol. An asset whose only registered protocol is RDP can host user sessions but cannot be reached by account collection or credential rotation.

## Assets behind a jump host

When an asset is reached through a [proxy](https://wiki.datadike.com/pam/administration/connectivity/proxy.md), the solution never connects to the asset itself. The firewall request has two legs instead of one:

| From          | To            | Port                                                 |
| ------------- | ------------- | ---------------------------------------------------- |
| The solution  | The jump host | SSH, 22 unless the jump host's asset says otherwise  |
| The jump host | The asset     | The asset's own port, for example RDP 3389 or SSH 22 |

No rule is needed from the solution to the asset. If one exists and the asset answers, the network is not isolated and the jump path is not what is being used. See [Prepare a Linux jump host](https://wiki.datadike.com/pam/administration/connectivity/jump-host-setup.md).

## Related pages

* [Platforms](https://wiki.datadike.com/pam/administration/assets/platforms.md) — where the defaults come from
* [Asset inventory](https://wiki.datadike.com/pam/administration/assets/inventory.md) — where the effective port is set
* [Database sessions](https://wiki.datadike.com/pam/administration/sessions/database.md)
* [Collect accounts from an asset](https://wiki.datadike.com/pam/administration/accounts/discovery-of-accounts.md)
* [Rotate credentials](https://wiki.datadike.com/pam/administration/accounts/rotation.md)
