Addresses, ports & reconnects
Exactly how ProxVN assigns and keeps addresses, so the links you share stay stable.
How addresses are assigned
| Type | Assignment |
|---|---|
| HTTP | The subdomain you request (--subdomain) if it is free, otherwise a random 6-character name. Names reserved by another account, system names (www, api, admin…) and names shorter than 3 characters are never assigned. |
| TCP / UDP | A random port in the public range (default 10000–20000). Ports used by other services on the host and ports excluded by the operator are always skipped. |
Keeping your address through disconnects
- When a client loses its connection the server holds its subdomain/port: 10 minutes for guests, 24 hours for logged-in accounts.
- The client reconnects automatically (2 s → 30 s backoff) and gets the same address back.
- The client stores its session key in
~/.proxvn/sessions.json, so re-running the same command (same server, protocol and local port) also gets the previous address back within the hold window. - Reserved subdomains (Console → Subdomains) are always yours regardless of the hold window.
When the server restarts or crashes
- The server records the address of every live tunnel every 2 minutes. After a restart — even an unclean crash — clients reconnect and receive exactly the same addresses.
- On a controlled shutdown (upgrades) the server stops accepting new connections, saves state and exits; systemd restarts it within 2 seconds.
- During the restart, visitors of an HTTP link see a "Tunnel offline" page for a few seconds; then everything resumes on its own.
Releasing addresses for others
- After the hold window, ports return to the shared pool and random subdomains may be assigned to someone else. Cleanup runs every minute.
- Reserved subdomains that are not used for 90 days (configurable by the operator) are released automatically. You can also release them yourself in the Console.
- Stopping the client with Ctrl+C closes the tunnel immediately; the address is only held as described above.
Default limits on the public server
| Guest | Account | |
|---|---|---|
| Concurrent tunnels | 20 per IP | 10 per account (configurable) |
| Reserved subdomains | — | 3 |
| Address hold after disconnect | 10 minutes | 24 hours |
| HTTP request rate | Per-visitor request and short-burst limits set by the operator | |
These are software defaults; the operator can change them. See the current account limits in the Console. Request limits reduce some application abuse; they do not protect an Internet connection from a bandwidth-saturating DDoS attack. See network exposure and protection when operating your own server.
ProxVN is free to use. If it saves you time, you can support server hosting costs →