View Single Post
psychonic

BAFFLED
Join Date: May 2008
Old 03-13-2017 , 10:16   Re: Source Admin Tool (HLSW Alternative)
Reply With Quote #108

It seems there is confusion over what Killing Floor calls the query port, but I'm referring to the one that answers to Steam server queries and what the Steamworks SDK refers to as the query port. For Killing Floor, it does default to listening on 28852.

It is not hardcoded because it needs to be unique per server when running multiple on the same IP address.

For servers that are listed on the master server, you can find the query port by querying the master server. (It only gives back the query port, and then the game port would normally be found by querying the server via the query port). You can also use the Steam Web API to do similar. Ex. https://api.steampowered.com/ISteamApps/GetServersAtAddress/v1?addr=<IP address here> (The addr field in the response entries has the IP address and query port.)

Last edited by psychonic; 03-13-2017 at 10:21. Reason: clarifications
psychonic is offline