Documentation

Relay

Relay

Networking

Learn about the multiple protocols that Relay supports for multiplayer communication.
Read time 1 minuteLast updated 5 days ago

Note
WebSocket is only supported on UTP 2.0.0-pre.3+.
The Relay service allows players to communicate over several different protocols, including UDP, datagram TLS (DTLS), and secure WebSocket (WSS). After allocated to a Relay server, clients talk directly to the Relay server using one of the aforementioned protocols. Relay BIND messages are further authenticated through HMAC signatures. The Allocation service relies on UAS authentication and HTTPS encryption. WebSocket connections allow for multiplayer connectivity on browsers using WebGL.

Ports and protocols

The Relay service requires the following ports and protocols:
  • For API calls, such as creating an allocation, listing available regions, or querying the QoS discovery service, connections operate over TCP using HTTP or HTTPS on ports 80 or 443.
  • For standard connections to a Relay allocation, whether with or without DTLS enabled, the system uses a port range of 37000 to 37100. Most connections will use UDP, except in the case of WebSockets, which use TCP.
  • The QoS service will always use UDP on port 7778.
Check out Authentication, DTLS encryption, Scaling, and Locations.