# NDI Related Network Ports

NDI uses both TCP and UDP ports for handling inbound and outbound traffic. For example, ports in the range of 5960 and up are used for both TCP and UDP connections, allowing for efficient data transmission and reception.

<table data-full-width="true"><thead><tr><th>Port</th><th>Type</th><th>Use</th></tr></thead><tbody><tr><td>5353</td><td><a data-footnote-ref href="#user-content-fn-1">UDP</a></td><td>This is the standard <a data-footnote-ref href="#user-content-fn-2">port</a> used for mDNS communication and is always used for multicast sending of the current sources onto the network.</td></tr><tr><td>5959</td><td><a data-footnote-ref href="#user-content-fn-3">TCP</a></td><td>NDI Discovery Server is an optional method to have NDI devices perform discovery. This can be beneficial in large configurations when you need to connect NDI devices between <a data-footnote-ref href="#user-content-fn-4">subnets</a> or if mDNS is blocked.</td></tr><tr><td>5960</td><td><a data-footnote-ref href="#user-content-fn-3">TCP</a></td><td>This is a TCP <a data-footnote-ref href="#user-content-fn-2">port</a> used for remote sources to query this machine and discover all the sources running on it. This is used, for instance, when a machine is added by an IP address in the access manager so that from an IP address alone, all the sources currently running on that machine can be discovered automatically.</td></tr><tr><td>5961 and up</td><td><a data-footnote-ref href="#user-content-fn-3">TCP</a></td><td>These are the base TCP connections used for each NDI stream. For each current connection, at least one <a data-footnote-ref href="#user-content-fn-2">port</a> number will be used in this range.</td></tr><tr><td>5960 and up</td><td><a data-footnote-ref href="#user-content-fn-1">UDP</a></td><td>In version 5 and above, when using Reliable UDP connections, it will use a very small number of ports in the range of 5960 for UDP. These <a data-footnote-ref href="#user-content-fn-2">port</a> numbers are shared with the TCP connections. Because connection sharing is used in this mode, the number of ports required is very limited and only one port is needed per NDI process running and not one port per NDI connection.</td></tr><tr><td>6960 and up</td><td>TCP/UDP</td><td>When using multi-TCP or UDP receiving, at least one <a data-footnote-ref href="#user-content-fn-2">port</a> number in this range will be used for each connection.</td></tr><tr><td>7960 and up</td><td>TCP/UDP</td><td>When using multi-TCP, unicast UDP, or multicast UDP sending, at least one <a data-footnote-ref href="#user-content-fn-2">port</a> number in this range will be used for each connection.</td></tr><tr><td>Ephemeral</td><td><a data-footnote-ref href="#user-content-fn-3">TCP</a></td><td>Legacy to NDI v1 - The current versions (4.6 and later) no longer use any ports in the ephemeral <a data-footnote-ref href="#user-content-fn-2">port</a> range.</td></tr></tbody></table>

[^1]: UDP (User Datagram Protocol) is an alternative protocol to TCP that is used when reliable delivery of data packets is not required. UDP is typically used for applications where timeliness is of higher priority than accuracy, such as streaming media, teleconferencing, and voice-over IP (VoIP).

[^2]: A port is a communications channel for data transmission to and from a computer on a network. Each port is identified by a 16-bit number between 0 and 65535, with each process, application, or service using a specific port, or multiple ports, for data transmission. Port can also refer to a hardware socket used to physically connect a device or device cable to your computer or network.

[^3]: TCP (Transmission Control Protocol) is a network communications protocol that enables two host systems to establish a connection and exchange data packets, ensuring that data is delivered to the correct destination. TCP is typically grouped with IP (Internet Protocol) and is known collectively as TCP/IP.

[^4]: Subnet (short for subnetwork) refers to a distinct subdivision of an IP network, usually created for performance or security purposes. Subnets typically include the computers, systems, and devices in one location, office, or building, with all nodes sharing the same IP address prefix.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.ndi.video/all/getting-started/white-paper/ndi-related-network-ports.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
