UDP forwarding / Peer rendezvous
A free relay server for multiplayer game traffic.
Forward UDP game datagrams between a host and its players when a direct path is unavailable. The Berries relay server works alongside the lobby API and your own transport. One registered game is included free, with relay capacity limits.
One registered game per free account. Per-game capacity limits apply.
Keep game transport separate from session discovery
The HTTPS lobby API coordinates membership and provisions relay credentials. The UDP relay forwards game datagrams. Your client controls connection attempts, routing and replication; Berries does not automatically switch an arbitrary game transport to relay mode.
Provision per lobby
The owner opens a relay session and receives host credentials. Joining members request their own access once the relay is ready. Provisioning calls require an Idempotency-Key.
Bind a UDP socket
Each peer binds its endpoint using the relay packet protocol. Members send data to the host, and the host addresses individual members using their peer IDs.
Attempt a direct path
Rendezvous packets provide peer endpoints after binding. Your client can attempt a direct exchange from the same socket while keeping the relay available.
Integrating the UDP relay server
Enable lobbies and relay for your game, create or join a lobby, and keep membership alive. Use the returned relay credentials to implement the documented packet framing, authentication and sequencing. Send keepalives when idle and release relay access when a player leaves.
POST /lobbies/{lobbyId}/relay/host
POST /lobbies/{lobbyId}/members/{memberId}/relay
GET /lobbies/{lobbyId}/relay/operations/{operationId}
DELETE /lobbies/{lobbyId}/members/{memberId}/relay
DELETE /lobbies/{lobbyId}/relay
The relay is a host-and-members topology, not a generic proxy for arbitrary internet destinations. UDP must be supported by the target platform. NAT traversal and direct connectivity depend on the peers' network conditions.
Using the relay server with Unity
Unity clients call the provisioning API with HTTPS, then use a compatible UDP socket implementation for the relay protocol. Integrating with a Unity networking framework requires a transport adapter; receiving credentials alone does not route that framework's packets.
See the Unity relay server integration flow →