Overview
Wings manages network configuration for all game servers running on a node, handling port allocation, IP binding, and network isolation through Docker.Network Architecture
Port Allocation
Wings assigns network ports to servers based on allocations configured in the Panel.How Allocations Work
- Panel Configuration: Create allocations in Panel → Nodes → Allocations
- Server Assignment: Assign allocations when creating a server
- Wings Implementation: Wings maps container ports to host ports
Primary Allocation
Every server has one primary allocation:Additional Allocations
Servers can have multiple allocations for additional services:ServerConfigurationStructureService (app/Services/Servers/ServerConfigurationStructureService.php:72):
IP Binding
Default Binding (0.0.0.0)
Most servers bind to all interfaces:Specific IP Binding
Bind to a specific IP address:Multiple IPs per Node
Configure multiple IPs in Panel → Nodes → Allocations:Docker Network Configuration
Bridge Network
Wings uses Docker’s default bridge network:- Internal IP (e.g., 172.17.0.x)
- Port mappings to host
- NAT for outbound connections
Port Mapping
Wings creates Docker port mappings:Force Outgoing IP
Some eggs force outgoing traffic to use the allocation IP:Firewall Configuration
Required Ports
| Service | Port | Protocol | Description |
|---|---|---|---|
| Wings API | 8080 | TCP | Panel communication |
| SFTP | 2022 | TCP | File transfers |
| Game Servers | 25565-25665 | TCP/UDP | Server allocations |
UFW (Ubuntu/Debian)
FirewallD (CentOS/RHEL)
iptables
SFTP Configuration
Wings runs an integrated SFTP server for file management.SFTP Settings
Configure in/etc/pterodactyl/config.yml:
SFTP Connection
Users connect with the format:SFTP Authentication Flow
- User connects to Wings SFTP server
- Wings extracts username and server ID
- Wings calls Panel’s
/api/remote/sftp/authendpoint (app/Http/Controllers/Api/Remote/SftpAuthenticationController.php:34) - Panel validates credentials and permissions
- Panel returns user UUID and permissions
- Wings grants access to server files
SFTP Permissions
The Panel returns permissions for the authenticated user:Wings API Networking
API Configuration
API Endpoints
The Panel communicates with Wings through these endpoints:GET /api/system- System informationGET /api/servers- List all serversGET /api/servers/{uuid}- Server detailsPOST /api/servers/{uuid}/power- Power actionsPOST /api/servers/{uuid}/commands- Send console commandGET /api/servers/{uuid}/logs- Get console logsGET /api/servers/{uuid}/files- List filesPOST /api/servers/{uuid}/files/upload- Upload file
Authentication
Wings API uses token-based authentication:/etc/pterodactyl/config.yml:
WebSocket Console
Wings streams server console output via WebSocket.WebSocket Connection
Clients connect to:CORS Configuration
Restrict WebSocket origins:Network Performance Optimization
TCP BBR Congestion Control
Enable BBR for better throughput:Network Buffer Tuning
Connection Tracking
Increase conntrack limits for high-traffic nodes:Port Allocation Best Practices
Port Ranges
Recommended port allocation strategy:Allocation Creation
Create allocations in bulk:IPv6 Support
Wings supports IPv6 allocations:Enable IPv6
IPv6 Allocations
Add IPv6 allocations in the Panel:Troubleshooting
Port Already in Use
Connection Refused
Wings API Unreachable
SFTP Connection Issues
Advanced Networking
Custom Docker Network
Create a dedicated network for Pterodactyl:Network Isolation
Isolate servers from each other:DDoS Protection
Integrate with DDoS protection:- Use separate IPs for protected servers
- Route traffic through protection service
- Configure protected IPs in Panel allocations
Next Steps
Security
Secure your network configuration
Monitoring
Monitor network performance
Docker Management
Learn about container networking
Configuration
Advanced configuration options
