Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Port Forwarding

Port forwarding exposes a device’s port on your VPS’s public IP address. This is how you make services reachable from the public Internet.

Warning

Port forwarding requires a dedicated public IPv4 address on your VPS. Shared IPv4 addresses (CGNAT, shared NAT, load-balanced IPs) and IPv6-only VPSes cannot be used to expose services to the clearnet. Confirm with your VPS provider before purchasing.

Note

StartTunnel acts as a port-control gateway for connected devices, speaking PCP (preferred) and UPnP. A StartOS server using this tunnel opens the ports it needs automatically when you enable a public address — the same way it would behind a home router — and removes them when the address is disabled or deleted. For security, an automatically created forward always targets the requesting device’s own tunnel IP; a device can only open ports to itself. The steps below are for adding or managing forwards manually.

Manual and automatic forwards

The Port Forwards page shows two tables: Manual forwards you added by hand, and Automatic forwards opened by connected devices via PCP/UPnP. You can enable, disable, or remove either; automatic forwards have no editable label (they’re owned by the device that created them) and may be re-created if you remove one while the device still wants it.

Add a forward manually

  1. In StartTunnel, navigate to Port Forwards and click “Add”.

  2. Select the external IP address you want to use (there is usually only one).

  3. Enter the external port and the internal (device) port as. In almost all cases, they will be the same.

  4. If you are forwarding port 443 -> 443, you will see a checkbox to also forward port 80 -> 443. This is highly recommended, as it will automatically redirect HTTP to HTTPS.

  5. Click “Save”.