Game Server Queries
Table of ContentsThe follow aspects of ALP currently accept IP addresses for querying game servers:
- Open Game Request (gamerequest.php)
- Server List (servers.php)
- Tournament Server Player Listings (admin_disp_tournament.php)
When you input a server IP address, for each game there is a default game port and a default query port.
Game Ports and Query PortsThis is how a server connection works. First, it starts out with a player browsing the local LAN games in their in-game server browser. The in-game server browser looks for game servers on certain 'game ports' on the LAN. But when a PHP script wants to get information from a server, it must use the servers 'query port'. This is the port set up by the game server to relay information to clients that want it. For example, HLSW or GameQ. GameQ is what ALP uses to query its servers. Sometimes when you're entering an server IP address into ALP, you must also input the server game port, if you're trying to run multiple servers from one machine. This will also probably mess up the query port. So below, we're compiling a list of the games available and the algorithms to figure out their 'query port' based on their 'game port'.
Things to Remember: Running Multiple Game Servers on One Machine
- Each server must have its own Game Port. For the server to show up in the in-game server browser, it must be in the range listed below under 'In Game Server Browser Ports'.
- If a server has a non-standard Game Port, you must specifiy it when you put the server into ALP.
- If a server has a non-standard Game Port, you must also specify the Query Port for that server, which may be the same as the non-standard Game Port (it is likely, but not always the same. For example, in UT2004, the Query Port = Game Port + 1).
|