---
title: Carry a port to your computer
project: TotalSSH
version: Latest
section: guides
language: en
license: 
url: https://totaljs.es/docs/totalssh/latest/guides/ports/
updated: 2026-12-02T15:40:31.075Z
---

# Carry a port to your computer

> A port of your computer can lead to a database or a service behind a server, so the tools on your computer use it as if it were here.

## Add a port

1. Open the form of the server and go to **Ports carried**.
2. Press **Port** and fill in the row.
3. Press **Save and connect**.

| Field | What to write | Example |
| --- | --- | --- |
| **Port here** | The port of your computer, any that is free | `5433` |
| **Host there** | The host as the server sees it. `localhost` is the server itself | `localhost` |
| **Port there** | The port of the service | `5432` |

With this example, connect your database client to `localhost`, port `5433`.

You can add several ports. To remove one, press the bin of its row and save.

## When it works

The port is carried while a terminal on the server is open. Under the terminal, a line for each port says **carried while this terminal is open**, or why it is not. The cross hides the lines, and the ports go on.

Only your own computer can use the port: it is not open to your network.

The first terminal on the server carries the ports. A second one says that they are taken. If you close the first, the ports close too: press **Connect again** in a terminal that has ended, or open another tab, to carry them once more.

## A Docker container

Write the name of the container in **Host there** and the port inside it in **Port there**. If the server does not know that name, TotalSSH asks Docker on it where the container is, each time it connects.

For this, the user you sign in with must be able to use Docker there, directly or with `sudo` without a password.

## If a port is not carried

| Message | What to do |
| --- | --- |
| **The port … of this computer is taken, or may not be used** | Choose another number in **Port here** |
| **The SSH server could not reach …** | Check the host and the port, as they are seen from the server |
| **The SSH server does not allow tunnels** | Ask whoever runs the server to allow them, with `AllowTcpForwarding` |

The terminal opens even when a port is not carried.
