Port System & Allocation
Understand how TinyBox VPS allocates and manages ports for your services
Port Calculator
Enter your VPS ID (100-999) to calculate your ports:
Table of Contents
1. Port System Overview
TinyBox VPS uses a sophisticated port allocation system that automatically assigns unique ports to each VPS instance. This eliminates port conflicts and provides predictable, secure access to your services.
Key Benefits:
- • No port conflicts between VPS instances
- • Predictable port assignments
- • Automatic allocation based on VPS ID
- • Support for both TCP and UDP protocols
Security Features:
- • Non-standard port ranges
- • Reduced exposure to automated attacks
- • Isolated port spaces per VPS
- • IPv6 port forwarding support
How It Works:
Each TinyBox VPS receives a unique VPS ID during creation. This ID is used in mathematical formulas to calculate your specific port assignments, ensuring no two VPS instances share the same ports.
2. Port Calculation Formula
Universal Port Formula
Base Port Ranges:
Example Calculation:
If your VPS ID is 345:
- • SSH Port: 10000 + 345 = 10345
- • Service Port 1: 20000 + 345 = 20345
- • Service Port 2: 30000 + 345 = 30345
3. Default Port Allocation
Every TinyBox VPS automatically receives 3 default ports upon creation:
SSH Port (10000 + VPS ID)
Reserved exclusively for SSH connections
- • Protocol: TCP only
- • Purpose: Secure shell access
- • Restriction: Cannot be reassigned or modified
- • Security: Automatic fail2ban protection
Service Port 1 (20000 + VPS ID)
General purpose service port
- • Protocol: TCP by default (UDP available)
- • Common Uses: Web servers, databases, APIs
- • Flexibility: Can be used for any service
- • Configuration: Managed via control panel
Service Port 2 (30000 + VPS ID)
Additional general purpose port
- • Protocol: TCP by default (UDP available)
- • Common Uses: Secondary services, development environments
- • Flexibility: Can be used for any service
- • Configuration: Managed via control panel
Important Notes:
- • The SSH port (10000 + ID) is strictly reserved and cannot be used for other services
- • All ports are automatically configured when your VPS is created
- • Port assignments are permanent and tied to your VPS ID
4. TCP vs UDP Protocols
TinyBox VPS supports both TCP and UDP protocols with different allocation strategies:
TCP Protocol
-
Default Assignment: All ports are TCP by default
-
Reliability: Connection-oriented, guaranteed delivery
-
Use Cases: Web servers, databases, SSH, APIs
-
Port Ranges: 10000, 20000, 30000 series
UDP Protocol
-
Special Request: Must be specifically configured
-
Performance: Connectionless, faster but less reliable
-
Use Cases: Gaming, VoIP, streaming, DNS
-
Port Calculation: Same formula, configured in panel
Protocol Configuration:
To change a port from TCP to UDP, access your TinyBox Control Panel and modify the port settings. The port number remains the same - only the protocol changes.
5. Real-World Examples
Here are practical examples showing how different VPS IDs translate to port assignments:
VPS ID: 150
Perfect for: Small websites, development environments
VPS ID: 456
Perfect for: Multiple applications, databases, APIs
VPS ID: 789
Perfect for: Production applications, microservices
VPS ID: 837
Perfect for: High-traffic applications, gaming servers
Common Service Configurations:
Web Server Setup
- • Port 20XXX: HTTP (Apache/Nginx)
- • Port 30XXX: HTTPS with SSL
- • SSH Port: Server management
Database + API
- • Port 20XXX: Database (MySQL/PostgreSQL)
- • Port 30XXX: REST API endpoint
- • SSH Port: Database maintenance
6. Port Management
TinyBox VPS provides comprehensive port management through the control panel:
Additional Ports
- Request up to 7 additional ports
- Same calculation formula applies
- Use higher base port ranges (40000, 50000, etc.)
- Managed via control panel interface
Port Configuration
- Switch between TCP and UDP protocols
- Configure port forwarding rules
- Monitor port usage statistics
- Set up firewall rules per port
Control Panel Access:
Manage all port settings through your TinyBox Control Panel. The interface provides real-time port status, usage statistics, and configuration options.
Port Lifecycle:
7. Limitations & Best Practices
System Limitations
-
Maximum 10 ports per VPS (3 default + 7 additional)
-
SSH port immutable - cannot be changed or reassigned
-
No port sharing between different VPS instances
-
Formula dependency - ports tied to VPS ID permanently
Best Practices
-
Document port usage for team members and future reference
-
Use consistent port assignments across environments
-
Monitor port usage through the control panel
-
Plan service architecture around available ports
Security Considerations:
- • Always use strong authentication for services on public ports
- • Regularly audit which services are running on which ports
- • Consider using VPN or IP restrictions for sensitive services
- • Keep services updated to prevent security vulnerabilities
Pro Tips:
- • Use service port 1 (20000+ID) for your primary application
- • Reserve service port 2 (30000+ID) for databases or APIs
- • Request additional ports early if building complex applications
- • Consider microservices architecture to maximize port efficiency