How to get the query port
Valve server queries are clear and is relatively easy to get server info in .net language... BUT YOU MUST KNOW THE QUERY PORT to query the server.
Each game has a default query port, but admins can change it without problems, so that is impossible to get info from those servers.
So the question: how to get the query port of a valve game server?
Last edited by phil_1950.ita; Dec 9, 2018 @ 10:28am

Something went wrong while displaying this content. Refresh

Error Reference: Community_9708323_
Loading CSS chunk 7561 failed.
(error: https://community.fastly.steamstatic.com/public/css/applications/community/communityawardsapp.css?contenthash=789dd1fbdb6c6b5c773d)
Showing 1-6 of 6 comments
You use the default, and complain to server admins that don't.
phil_1950.ita Dec 9, 2018 @ 11:03am 
The problem is that some servers where I usually play DON'T HAVE standard port and I can't query those servers by my code to know when the match is finished and join the game.
How can web sites like gametracker to query ALL servers? Evidently them KNOW the query port.
phil_1950.ita Dec 12, 2018 @ 8:15am 
UP!
I ask again: is there a specific query to get the game port of a America's Arny (Steam game) specific server?
ReBoot Dec 12, 2018 @ 8:27am 
It's down to the following possibilities:
1. The default port for the game
2. The master server has a list of all servers announcing themselves (you don't really think a game browser tries all IPs with all ports)
3. Ask the admin
If 1 is unavailable because the admin chose some other port, it's down to 2 or 3. Pick one.
Last edited by ReBoot; Dec 12, 2018 @ 8:28am
76561199167676574 Apr 10, 2024 @ 2:45pm 
Did you find an answer to your question?
ZanyScum Apr 10, 2024 @ 3:52pm 
Originally posted by ReBoot:
It's down to the following possibilities:
2. The master server has a list of all servers announcing themselves (you don't really think a game browser tries all IPs with all ports)

I pretty sure it must be this.
The master server must know custom ports. Otherwise it is pretty useless. Pretty. But useless :-)
Showing 1-6 of 6 comments
Per page: 1530 50

Date Posted: Dec 9, 2018 @ 10:27am
Posts: 6