This is how you and your friends get onto your own Team Fortress 2 server. The quickest way is the developer console with the ready-made command from the panel. Every player does these steps on their own PC.
Requirements
- A running TF2 server. The panel shows Running at the top.
- Team Fortress 2 on Steam. Other players don't need access to your panel.
Find the address in the panel
Open your server in the panel. On the overview, under Invite friends, you'll find the Console command to connect, for example connect 203.0.113.10:27015. Copy next to it puts it on your clipboard. At the top, under Server address, the same connection is shown with a name instead of numbers.
The port is always part of it. Without it the game tries the default port and won't find your server.
Connect through the console
- Start Team Fortress 2 and open Options › Advanced. Tick Enable developer console and confirm.
- Open the console with
~on a US keyboard or^on a German one. - Paste the copied command, for example
connect 203.0.113.10:27015. - Press Enter. The game connects and loads the map.
If your server has a password, put it in front of the connect command on the same line:
password "yourPassword"; connect 203.0.113.10:27015
If you leave the password out, the game asks for it when you connect.
Through your Steam favorites
If you play on the server often, add it as a favorite.
- In Steam, open View › Game Servers at the top.
- Switch to the Favorites tab and click the plus for Add a Server.
- Enter the address with port, for example
203.0.113.10:27015, and confirm. - Select the server in the list and click Connect.
The server then also shows up in the game among the favorites of the community servers.
Set a password
The panel has no field of its own for a password. You add it to the file server.cfg:
- Open Files & worlds › Files and go to the folder
tf/cfg. - Open
server.cfg. If the file doesn't exist, create it under that name. - Add the line
sv_password "yourPassword"and save. - Restart the server.
With sv_password "" the server is open again without a password.
Share the details with other players
Send your friends the connect command and the password if needed, for example on Discord. The easiest way is to copy the whole line and paste it into the console. How many players can play at once is shown under Game settings › Server Variables in the Maximum players field. Your plan sets this value.
Common problems
The console doesn't open. Check that Enable developer console is ticked. If the key is awkward on your keyboard, bind the console to a different key in the keyboard settings.
The game doesn't connect. Check that the port follows the address and there is no space in it. Then check in the panel that the server is running. If the server went to sleep because nobody was online for a while, start it with Start Server and connect afterwards.
The password is rejected. Compare it with the sv_password line in tf/cfg/server.cfg. If you just changed it, restart the server.
The server is missing from the community server list. It only appears there with a valid Steam server token (GSLT). The panel creates one by itself during setup. Through the console or your favorites you can join right away even without a list entry.
How to set the map, game mode and mods is covered in the guides Team Fortress 2 server setup and Team Fortress 2 server config.
Don't have a server yet? TF2 server hosting.