Networking
Ports, how player traffic reaches a server, and what a server can reach.
Ports
A fleet template declares up to four ports. Each has a name, the container port the game listens on, and a protocol:
| Protocol | For |
|---|---|
PORT_PROTOCOL_UDP | Most game traffic |
PORT_PROTOCOL_TCP | Lobbies, HTTP, game protocols over TCP |
PORT_PROTOCOL_TCP_UDP | One public port number carrying both |
Every server gets a public port for each, between 20000 and 21000, on its node's public address. Allocation and matchmaking return the address and the public ports by name, so the game never needs to know them. Players always connect to the public port, whatever the container port is.
How players reach a server
Player traffic arrives at the node, and a proxy there forwards it to the server. What the game sees:
- Source addresses. Packets and connections come from the node's address. Each player still has a source port of its own, so tell players apart by the full
address:port. The player's own IP is not visible to the game. Identify players by what they send, such as a token from your backend. - Idle UDP flows. A UDP flow that carries nothing either way for 30 seconds is closed. The player's next packet then arrives from a new source port. Send a keepalive from the client at least every 20 seconds, or let players rejoin by token.
- Unanswered UDP flows. A new flow the server does not answer within 5 seconds is closed. Reply to every client's first packet, even if only to acknowledge it.
- Flow limit. A port holds up to 512 UDP flows at once. Plan for one flow per connected player.
The node also rate-limits traffic per source address, to soak up floods aimed at one server.
What a server can reach
| Destination | Allowed |
|---|---|
| The internet, over any port but 25 | Yes |
| DNS | Yes |
The SDK, at AQUILA_SDK_URL | Yes, SDK servers only |
| Mail servers on port 25 | No |
| Other servers, in your fleets or anyone else's | No |
| The cluster's own services and nodes | No |
Servers that need to talk to each other, or to your backend, do so through your backend's public endpoints.
Incoming traffic reaches a server only on its declared ports, through the proxy. A metrics endpoint is reachable by Aquila's scraper only, and never public.
Isolation
An approved organization runs in its own namespace on nodes dedicated to it. No other organization's servers share those nodes, and nothing in another organization's namespace can reach yours.