# Port forwarding

> How to open a port on your server to the internet through your static IP address.

Port forwarding connects a port on your public address to a port on your server. For example, port 443 on your static IP can point to port 443 on the server. The source IP address of each connection reaches the server unchanged (no SNAT); inbound traffic is not filtered beyond the firewall, see [Network policy](https://jezahost.com/en/help/vps/network-policy).

By default all ports are closed. You choose who can connect: everyone, Azerbaijan, Türkiye, Russia, Georgia, Uzbekistan, Cloudflare or your own IP list. If you need a country that is not on the list, write to support and we will add it.

## What you need

- Your own static IP address. If you don't have one, the panel shows "Port forwarding needs your own public IP address. Please contact support." instead of the add button. See [Static IP](https://jezahost.com/en/help/vps/static-ip).
- An active server.

## Adding a rule

You can add rules in two places:

- **Server page** → **Port forwarding** panel. Rules created here always point to this server.
- **Network** in the left menu → **Port forwarding** panel. All your servers' rules are here, and you choose the target server.

1. Click **Add rule**.
2. If you have several addresses, choose one in **Address**.
3. Choose **Single port** or **Range**. A range opens consecutive ports with one rule: fill in **External port (start)** and **How many ports**. Internal ports are mapped in the same order.
4. Enter the **External port**: the port seen from the internet.
5. Choose the **Protocol**: TCP, UDP or TCP + UDP.
6. On the Network page, choose the **Target server**.
7. Enter the **Internal port**: the port your service listens on inside the server.
8. Choose who may connect in **Allowed country**. The default depends on your account's country: "Azerbaijan only" if it is Azerbaijan, "All countries" for any other country. If the account has no country, the country of the IP address you are connecting from is used. You can change the choice at any time. Other options:
   - one country (Türkiye, Russia, Georgia, Uzbekistan);
   - Cloudflare, GitHub Actions, Microsoft 365;
   - "My addresses only";
   - "All countries".

   "My addresses only" appears once your "My trusted addresses" list has at least one address.
9. Optionally add a short **Note (optional)**, for example "web server".
10. Click **Add**.

The rule is queued and appears with the status "Creating". After a few seconds it becomes "Active".

## Opening one port to several countries

Add a separate rule for each source. Keep the same port and target, and change only **Allowed country**.

If "All countries" is selected, no other source can be added to that port.

## "My addresses only"

With this option, only your own IP addresses can connect to the port.

1. On the **Network** page, find the trusted IP addresses panel.
2. Click **Edit list**.
3. Type the addresses, or use **Import from file** with a CSV or TXT file.

The list can hold up to 20 entries. `0.0.0.0/0` is not accepted.

## Editing and removing a rule

Use the icons on the rule's row:

- **Edit:** click the pencil icon, make your change and click **Save**. The address cannot be changed: to move a rule to another address, delete it and create a new one.
- **Remove:** click **Remove** and confirm with **Yes, delete**. The port closes right away. Removal cannot be undone; if you need the port again, create the rule again.

## IPv6 gate

If the server's IPv6 address is active, the rule row shows two columns: **IPv4** and **IPv6**. The IPv4 gate always exists. When you turn on the **IPv6** switch, the dialog shows the port and the source; confirm with **Yes, open**. The port opens on the server's IPv6 address with the same number (no NAT), and the source restriction is shared with IPv4. The badge goes "Preparing" → "Open". Turning the switch off closes the gate without confirmation. Deleting the rule closes both gates. Port 3389 cannot be opened on IPv6. If the server has no IPv6 address, the switch is disabled; activate it first in **Network** → **IPv6 addresses**. Details: [IPv6 address](https://jezahost.com/en/help/vps/ipv6).

## Limits

- Up to 50 rules per server.
- Up to 20 changes per hour.
- External port 3389 (RDP) is blocked. Use another external port, for example 33189, and forward it to internal port 3389.
- Tip: let only the people who need the port connect to it. If a service is used from a particular country or from known addresses, pick that country or "My addresses only". "All countries" suits services meant for everyone, such as a public website.

---

Source: https://jezahost.com/en/help/vps/port-forwarding
Updated: 2026-11-15
Portal: https://cloud.jezahost.com/network
