How to get player SteamID from Valve server queries?

steam

Solution

The A2S* queries can't do this. Instead, you'd need to use the RCON Protocol and issue the `status` command.

The A2S_INFO query can return the server's steamID by passing `0x10` to the `Extra Data Flag (EDF)`, but this is the only SteamID you can get using the A2S* commands

Problem

These queries: https://developer.valvesoftware.com/wiki/Server_queries Can return many things about a [TF2] server, such as player names, points, current map etc. I see how to return a list of player names, but that isn't useful (players can freely change their names). How can I return a list of SteamIDs?

Original source