How to Set a Password on Your TF2 Server

TF2 is a multiplayer game where many users search browse the community server list to play. All TF2 servers are discoverable through this list. If you don't want random players joining your server, we highly recommend that you set a password. This will ensure only players that you have shared this password with will be able to connect.

How to Set a Password

  1. Navigate to your server control panel.
  2. Stop your server.
  3. Navigate to Files > Config Files.
    Image of step 3.
  4. Open Team Fortress 2 Server Settings.
  5. Set the Password field to your new password.
    Image of step 5.
  6. Click Save.
  7. Restart your server.

Setting a Temporary Password

Setting a password through your server settings will make your TF2 server private. However, this may not work for you if you wish to temporarily restrict your public server. Public servers can temporarily enable a password by executing a command through the control panel or RCON. Please note that cheats must be enabled for this method to work.

Note: This will not kick players connected to your server.
  1. Go to your server Console in your control panel.
  2. Enter sv_password PASSWORD
    • If you’d like to remove the password instead, you can use sv_password ""
      Image of step 2.

You can then use sv_password to check that the password has been set properly and output the current password in the console.
Image of checking your server password

If you require any further assistance, please contact our support at: https://shockbyte.com/billing/submitticket.php

Mitchell Smith

Managing Director @ Shockbyte

  • TF2, Team Fortress 2, password, private server
  • 2 Users Found This Useful
Was this answer helpful?

Related Articles

How to Change the MOTD of Your TF2 Server

The first thing players see when joining your TF2 server is your MOTD, which stands for “Message...

How to Change the Server Tags of Your TF2 Server

Players use tags to search for a Team Fortress 2 Server in the community server list. You may...

How to Enable the In-Game Console on Your TF2 Client

Team Fortress 2 has a native console that allows you to perform commands in-game, such as...

How to Use Custom Map Cycles on Your TF2 Server

Customizing your map cycle is a great way for you to have more control over your TF2 server. You...

How to Configure Game Duration on Your TF2 Server

When hosting a Team Fortress 2 server, you may want to configure game duration settings. This can...