Skip to content

Source Query Setup

INFO

SourceQuery is only implemented in Patch 17051 or higher.

You can use Source Query protocol to fetch additional information about your server like how many players are online.

WARNING

The server must be stopped while editing server files. You must save your edits and restart your server for any edits to take effect.

The Source Query protocol can be enabled by editing the Game.ini file. You can find this file in the following location:

INFO

WindowsServer is the folder name for Windows servers. If you are using a different operating system, the folder name will be different but the other folders will be the same.

  1. Inside the WindowsServer folder, edit the Game.ini file. Path: /Config/WindowsServer/Game.ini.
  2. Underneath the [SourceQuery] header, create the entries specified in the below example.

Example Game.ini

ini
[SourceQuery]
bEnabled=true
Port=0
IP="0.0.0.0"

Config Information

  • When IP is set to 0.0.0.0 will bind to all local addresses, if you want it to only bind to one adapter please insert that local address there instead.
  • A default port of 0 will auto determine the port which will be Game Server Port + 4.
txt
7777 = Default Game Port
7778 = (Reserved) + 1
7779 = Default Source Rcon Port + 2
7780 = Default Stats Port + 3
7781 = Default Source Query Port + 4

Options via Command Line

You can also specify the IP and Port via command line.
-QueryPort=7778 -QueryIP=0.0.0.0

Footer Image

7e4bd70