IPv4 Port Forwarding (20+1 Ports)
Understand how your dedicated SSH port, 20 TCP/UDP ports, custom internal port remapping, and extra port blocks work.
How Ports Are Allocated
Every container on natvps.cc receives two separate IPv4 port allocations on the host node's public IPv4 address:
- 1 Dedicated SSH Port (
10000range): Permanently mapped to internal TCP port22inside your container so SSH never consumes any of your application ports. - 20 Usable Application Ports (
20000+range): A contiguous 20-port block (for example,20020–20039) forwarded for both TCP and UDP traffic.
When you expose a web service using our 80/443 Domains & Auto HTTPS reverse proxy, our edge proxy connects to your container over the private host bridge. That means you can keep your web app listening internally without using up your public NAT ports.
Default 1:1 Mapping vs Custom Internal Remapping
By default, every port in your 20-port range is forwarded 1:1 (identity mapping) for both TCP and UDP:
- External
160.202.65.99:20020(TCP & UDP) → Internal container port20020(TCP & UDP). - External
160.202.65.99:20021(TCP & UDP) → Internal container port20021(TCP & UDP).
However, many apps listen on a fixed standard port internally (such as Node.js on 3000, WireGuard on 51820/udp, Minecraft/game relays, or Docker containers on 8080). Instead of editing your app's config file, you can remap any external port to any internal container port (1–65535) right from your dashboard!
Remapping a Port in the Client Panel
- Open your service in my.natvps.cc and switch to the IPv4 Ports tab.
- Pick an external port from your allocated range (for example,
20025). - Enter the Internal Port your software listens on inside the container (for example,
3000or51820). - Choose the protocol (
TCP + UDP,TCP only, orUDP only) and click Save Rule.
Host nftables DNAT rules update atomically in under 1 second with zero container reboot required. Deleting a custom rule immediately restores that port to its default 1:1 mapping.
Important: Bind Your Service to 0.0.0.0 (Not 127.0.0.1)
Because host NAT traffic enters your container via its eth0 network interface (10.200.x.x), any application you want reachable from the internet or from the 80/443 reverse proxy must listen on 0.0.0.0 or :: rather than 127.0.0.1 (localhost).
# Check which IP and port your service is bound to
ss -tulpn
# Good (reachable externally):
# tcp LISTEN 0 511 0.0.0.0:3000 0.0.0.0:* users:(("node",pid=412,fd=18))
# tcp LISTEN 0 511 [::]:3000 [::]:* users:(("node",pid=412,fd=18))
# Bad (loopback only: external NAT & 80/443 proxy cannot reach 127.0.0.1!):
# tcp LISTEN 0 511 127.0.0.1:3000 0.0.0.0:* users:(("python3",pid=501,fd=3))
In Docker Compose, publish ports normally (ports: ["3000:3000"] rather than 127.0.0.1:3000:3000) so Docker binds 0.0.0.0.
Adding +10 or +20 Extra IPv4 Ports
Need more than 20 ports? You can select +10 Usable IPv4 Ports or +20 Usable IPv4 Ports during checkout, or add them later at any time from Billing & Plan → Upgrade. Additional blocks are allocated collision-free in the 50000–64999 range and appear immediately in your IPv4 Ports tab without reinstalling your server.