Jump to content
McKay Development

Can I rely on a server's SteamID ?

Recommended Posts

When getting a server's data (using `getServerList()` for instance) there's a steamid key looking like: 

  "steamid": {
    "universe": 1,
    "type": 4,
    "instance": 14996,
    "accountid": 3841673219

I am wondering how reliable is this to identify a single server ? If, for example, I start a game server on some host and later move it to another one (meaning moving all of the files related to this game server, using the same Steam account etc...) will this Steam ID remain unchanged ?

Basically, I'm trying to track servers changing addresses / hosts and I'm not sure this is actually something I can do reliably.

Edited by Duel Kirk
Clean up bad formatting
Link to post
Share on other sites

SteamIDs with type 4 are anonymous gameservers, meaning the SteamID is going to change every time the server restarts. If you want a persistent SteamID, you need to register a gameserver account and use the login token you get on your server. Source-based games usually use tokens by adding +sv_setsteamaccount <token> to your server's command line.

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...