How to get SteamID Steam from Valve server requests?

These requests are: https://developer.valvesoftware.com/wiki/Server_queries

It can return many things about the server [TF2], such as player names, points, current map, etc.

I see how to return a list of player names, but this is not useful (players are free to change their names).

How can I return a list of SteamIDs?

+7
source share
2 answers

A2S * requests cannot do this. Instead, you will need to use RCON Protocol and issue the status command.

The A2S_INFO request can return Steam passwords by passing 0x10 to the Extra Data Flag (EDF) , but this is the only SteamID you can receive A2S * commands

+2
source

the only way to get the SteamID list is to connect to the real source client and issue the console command "status".

There are cfg-based solutions that dynamically generate special cfg files (which will be loaded by the game) with commands for connecting to several servers in series and issuing the "status" command. SteamID will be written to the console log file (and can be easily analyzed).

These programs are called "server scanners" or "steam scanners" and are mainly used for fraudulent and statistical purposes and can be found in official forums (facepunch.com is currently missing) https://www.google.com/?q= site: facepunch.com% 20server% 7Csteamid% 20scanner

+3
source

All Articles