# Port forwarding (HA)

> Add a port forwarding rule so devices can reach a connection that listens for incoming traffic in a High Availability deployment.

Most connections reach out to their device, and need nothing extra. Some connections instead listen for a device to connect in to them, for example a TSL UMD listener or a module with a return port. In a [High Availability deployment](/docs/buttons/v1.10/installation/high-availability), devices should connect through the cluster's virtual IP, because it moves to another machine if one goes down. To make a listening connection reachable on the virtual IP, add a port forwarding rule. The rule makes the virtual IP forward the port to whichever machine is running the connection at the moment.

**Port Forwarding** only appears in an HA deployment. On a single machine, devices connect to that machine's address directly and no rule is needed.

## Before you begin

- Find the port and protocol the connection listens on. These are usually in the connection's own configuration, such as **Listening Port** and **Port Type**.
- Pick a port that no other connection or workflow forwards, and that Buttons doesn't use itself, such as `80` or `443`. Buttons doesn't check this for you.

## Add a port forwarding rule

1. Open the connection under **Connect**. **Port Forwarding** is below **Label** on the **Config** tab. The number shows how many rules are enabled.

![The top of a connection's Config tab, with Label, Variable Key, Tags and Module in a row, and below them the Port Forwarding (0) button](https://bitfocus.io/api/docs-media/file/connection-button.png?prefix=docs-media)

2. Select **Port Forwarding**, then **Create Rule**.
3. Enter the **Port** the connection listens on, choose **TCP** or **UDP**, and optionally add a **Description**. Then select **Create**.

![The Create Port Forwarding Rule dialog over the Port Forwarding dialog, with Port 9800, Protocol UDP and the description TSL UMD from vision mixer](https://bitfocus.io/api/docs-media/file/create-rule.png?prefix=docs-media)

4. Close the **Port Forwarding** dialog and select **Save** on the connection. The rule isn't applied until you save.

The rule now appears in the list in the **Port Forwarding** dialog. Select it to see its details under **Rule Details**.

![The Port Forwarding dialog with one enabled rule for port 9800 over UDP, selected, and its Port, Protocol, Description and Enabled switch shown under Rule Details](https://bitfocus.io/api/docs-media/file/rule-list.png?prefix=docs-media)

The port on the virtual IP is the same as the port the connection listens on. Point the device at the virtual IP and that port.

## Change, pause or remove a rule

- To change a rule, select it in the list and edit it under **Rule Details**.
- To pause a rule without deleting it, turn off its **Enabled** switch.
- To remove a rule, right-click it and select **Delete**.

Select **Save** on the connection afterward, as when you add a rule.

## Tally connections

Tally **Server (Listen)** connections don't need a rule. Buttons forwards their ports automatically. See [Send or receive tally and labels over TSL/UMD](/docs/buttons/v1.10/tally/tsl-umd).

## Where to go next

- [Forward incoming traffic to a workflow in an HA deployment](/docs/buttons/v1.10/workflows/port-forwarding)
- [Network ports reference](/docs/buttons/v1.10/reference/network-ports)
- [Deploy Buttons with High Availability](/docs/buttons/v1.10/installation/high-availability)
