Query protocols

Note: The content on this page pertains to Game Server Hosting (Multiplay) available on the Unity Cloud Dashboard. If you’re using Game Server Hosting (Clanforge), refer to the Game Server Hosting (Clanforge) documentation.

A server query protocol is a protocol that facilitates querying information from a server. Game Server Hosting requires all builds to implement a server query protocol.

Note: Although you implement the query protocol in the build, you specify the query protocol in the build configuration.

Game Server Hosting uses the information supplied by the server query protocol to:

The analytic data is available per fleet and per server. The query protocol type might include concurrently connected players (CCU), players per platform, total available server slots, and current map.

The recommended protocol is SQP, which integrates well with Game Server Hosting. It's supported by both the Unity and Unreal Engine SDKs.

Game Server Hosting supports A2S. This might be beneficial if you are already using a library providing A2S, such as the Steam SDK. In future, this might not have feature parity with SQP.

Tip: Refer to go-svrquery for an example implementation of SQP. go-svrquery is a Golang client or talking to game servers using various query protocols, including SQP.