As an Amazon Associate we earn from qualifying purchases.

Playing on your own server changes how a co-op or sandbox game feels: your world, your settings, your save, running whether or not the person who usually hosts is online. For games distributed through Steam, the server software almost always arrives the same way, through a small command-line tool from Valve called SteamCMD. It looks intimidating because it is a text prompt rather than a window, but the whole routine is four commands long, and Valve documents every one of them.

This guide follows the SteamCMD page of the Valve Developer Community wiki, Valve’s own documentation for the tool, from downloading it to updating a server months later. Game-specific details such as the server’s app ID, its ports and its start command come from each game’s own server documentation, and the guide flags every place where you must look those up rather than guess them.

Quick Answer

Download SteamCMD from the link on Valve’s wiki page, extract it to its own folder, and run steamcmd.exe once so it updates itself. Then, per the wiki’s procedure, set the install folder with force_install_dir, log in with login anonymous, download the server with app_update followed by the game’s dedicated server app ID and the word validate, and type quit. The wiki’s own worked example installs the Counter-Strike server with app_update 740 validate. Afterwards, start the server with the launch command from the game’s server guide, and open the ports that guide lists in Windows Firewall and your router.

Step One: Download and Prepare SteamCMD

The Valve Developer Community wiki’s SteamCMD page is the only download source this guide uses, because it is Valve’s page and it links the current build.

  1. Open the SteamCMD page on the Valve Developer Community wiki and use its Windows download link to get the SteamCMD zip file.
  2. Create a dedicated folder for the tool, such as C:\steamcmd, and extract the zip into it. SteamCMD keeps its own files beside the executable, so it should not share a folder with unrelated programs.
  3. Double-click steamcmd.exe. On the first run it downloads its own updates, exactly as the wiki describes, and leaves you at a Steam prompt.
  4. Type quit and press Enter to close it cleanly. The tool is now installed; everything after this is using it.

Valve’s wiki is also clear about what SteamCMD is: a command-line version of the Steam client whose primary use is to install and update the various dedicated servers available on Steam. It is not a server itself. It fetches server software; the game’s own executable does the hosting.

Step Two: Find Your Game’s Dedicated Server App ID

Every SteamCMD command in this guide needs one number: the app ID of the dedicated server package, which is usually different from the game’s own app ID.

  1. Consult the list of dedicated servers that Valve maintains on the Valve Developer Community wiki. It lists the servers available through SteamCMD and notes which of them allow anonymous login.
  2. Find your game in that list and note its app ID.
  3. Open the game’s own dedicated server guide, published by its developer, and note three things alongside the app ID: the start command or start script, the ports the server uses and whether they are UDP or TCP, and whether the server requires a Steam account login or a server login token instead of anonymous access.

Do not substitute the game’s store app ID for the server app ID. They are different packages, and app_update with the wrong number either downloads the game client, which will not run as a server, or fails outright.

Step Three: Download the Server

The wiki’s “Downloading an app” procedure gives the sequence, and its order matters: the install directory is set before the download command runs, so the files land where you intend.

  1. Launch steamcmd.exe from the folder you created.
  2. At the Steam prompt, set the install directory by typing force_install_dir followed by the folder for this server, for example force_install_dir C:\servers\myserver, and press Enter.
  3. Log in by typing login anonymous and pressing Enter. Most dedicated servers are distributed this way; if your game’s guide says a real account is required, type login followed by your Steam username instead, and SteamCMD will ask for the password and any Steam Guard code.
  4. Download the server by typing app_update, the app ID from Step Two, and validate, then press Enter. The wiki’s own example of this step reads app_update 740 validate, which installs the Counter-Strike dedicated server.
  5. Wait for the download to finish, then type quit to log off Steam properly, as the wiki instructs.

The validate word earns its place: the wiki explains that it checks all the server files to make sure they match the files SteamCMD expects, which catches an interrupted download before it becomes a server that crashes on launch.

For repeat use, the wiki documents an automated form that passes the same commands on the command line, each prefixed with a plus sign. Its example is steamcmd +login anonymous +force_install_dir ../csgo_ds +app_update 740 +quit. Saved into a shortcut or a small script, that one line becomes your install and update button.

One known quirk from the wiki is worth filing away: the classic HLDS package, app ID 90, is a special case that needs a mod chosen with app_set_config first, and it has a documented bug requiring the app_update command to be run several times before all files arrive. Most modern servers do neither of these things, but if a download seems incomplete, running the same app_update command again is the wiki-endorsed first move for any server.

Step Four: Configure and Start the Server

SteamCMD’s job ended at the download. Starting the server uses the game’s own files and the game’s own documentation.

  1. Open the server folder you chose in Step Three and find the start command or start script named in the game’s server guide.
  2. Edit the server’s configuration file or start script with the settings the guide describes, typically the server name, the world or map, a password if you want one, and the port.
  3. If the game’s documentation requires a Steam Game Server Login Token, create one through the Steam Game Server Account management page Valve’s Steamworks documentation describes, and add it where the guide directs. Some games, Garry’s Mod among them per its official wiki, treat the token as mandatory rather than optional.
  4. Run the start command. A healthy server settles at its console with the map or world loaded and no repeating errors.

Keep the server console window open while hosting; closing it stops the server. Players on the same home network can usually connect through the server browser or the machine’s local address once it is running.

Step Five: Let Other Players Reach It

A server nobody can connect to is usually a networking problem, not a server problem. Two gates stand between your server and the internet, and both use the ports from your game’s guide, never guessed numbers.

  1. In Windows, open Windows Defender Firewall with Advanced Security and create an inbound rule allowing the server program, or the specific ports the game’s guide lists, following the rule types Microsoft documents for the firewall. Valve’s Source dedicated server documentation, for example, uses port 27015 as that engine’s default server port, but your game’s guide is the authority for your server.
  2. In your router’s settings, forward the same ports to the gaming PC’s local address, using the router maker’s own instructions for the exact screens.
  3. Give friends your public address and the server port. They connect through the game’s server browser or its direct-connect option.
  4. Test from outside your own network if you can, because connecting from the same house proves only the local half of the setup.

One honest limitation belongs here: if your internet provider places your connection behind carrier-grade NAT, port forwarding cannot make the server reachable, and no SteamCMD setting changes that. The game’s guide and your provider’s documentation are where that situation is confirmed.

Step Six: Update the Server When the Game Updates

Game updates and server updates are separate. When the game patches, the server usually needs the matching update before updated clients can join.

  1. Stop the server.
  2. Run SteamCMD and repeat Step Three against the same folder: the same force_install_dir, the same login, and app_update with the same app ID and validate.
  3. Start the server again with the same start command.

Because the wiki’s automation form takes the whole sequence as one line, most hosts save that line after the first install and simply run it whenever an update lands.

Common Mistakes

  • Using the game’s app ID instead of the dedicated server’s. Valve’s wiki treats them as different packages with different numbers; the dedicated server list on the wiki is the place to get the right one.
  • Setting force_install_dir after app_update. The wiki’s procedure sets the directory before downloading; set it late and the files go to SteamCMD’s default location instead of your server folder.
  • Skipping validate on the first install. The wiki describes validate as the check that downloaded files match the expected ones; without it, a partial download surfaces later as a server fault.
  • Inventing ports. The ports, their protocol and the start command come from each game’s own server guide. Valve’s documentation gives defaults for its own engines only, such as 27015 for Source servers.
  • Closing SteamCMD with the window’s close button mid-download, or never typing quit. The wiki’s procedure ends sessions with quit so the tool logs off and finishes writing its state properly.

Frequently Asked Questions

Do I need to own the game to host its server?

Usually not, because most dedicated servers download with login anonymous, which requires no account and no purchase, as Valve’s wiki describes. Some games are exceptions: their server guides state that a Steam account login is required, and a few require the account to own the game. The dedicated server list on Valve’s wiki notes which servers allow anonymous login, so check your game there before assuming either way.

Can I host and play on the same PC?

Yes, and it is the setup this guide assumes: the server runs in its own console window while you play the game on the same machine. The server and the game are separate programs with separate footprints, so a demanding game plus a busy server can stretch a modest PC, but nothing in Valve’s SteamCMD documentation prevents the arrangement, and for a few friends it is the normal way to host.

Why does my server not appear for my friends?

Work through the gates in order. Confirm the server console shows the world loaded without errors, confirm the Windows Firewall inbound rule covers the ports your game’s guide lists, and confirm the router forwards those same ports to this PC. If all three are right and it still fails, carrier-grade NAT at your provider is the remaining suspect, and only the provider can confirm or remove it.

How do I run servers for two different games?

Give each one its own folder and its own force_install_dir, and repeat the download steps per game with that game’s app ID. SteamCMD itself is shared; the wiki’s procedure is per app, so the second server is the same four commands with a different directory and number. Run only the servers you are actively hosting, since each one holds its ports and its share of the machine while it runs.

Related guides

Browse all Product Guides guides →

More from Amazon

Programs that pair well with the guide above. Offers and eligibility are set by Amazon and may change.

Amazon Prime

Free shipping on eligible items, Prime Video and more. Eligible new members can start with a free trial.

Start a Prime free trial
Amazon Music Unlimited

Ad-free music streaming. Eligible new subscribers can start with a free trial.

Try Music Unlimited free
Prime for Young Adults

A Prime membership for ages 18-24 with a trial period. Eligibility is set by Amazon.

See Prime for Young Adults
Audible

Audiobooks and podcasts to listen to on the go. Eligible new members can start with a free trial.

Try Audible free

As an Amazon Associate we earn from qualifying purchases.