How to Connect to Your Team Fortress 2 Server

Join your Team Fortress 2 dedicated server using the in-game console, Steam server browser, or a steam:// direct link.

Find Your Server Address

Find your server IP and port on the Network tab in the XGamingServer Panel. The default game port is 27015 (UDP).

TF2 requires a GSLT (Game Server Login Token) for the server to appear in the public browser. See Create GSLT.

Connect to Your Server

Open the developer console

Press ~ (tilde) in-game. Enable the console first via Options → Keyboard → Advanced → Enable developer console if needed.

Run the connect command

connect 123.45.67.89:27015

With a password:

connect 123.45.67.89:27015; password "YourPassword"

Open Steam server browser

In Steam, click View > Game Servers > Favorites tab.

Add the server

Click Add a Server and enter:

123.45.67.89:27015

Connect

Select the server in your favorites and click Connect.

Required Ports

PortProtocolPurpose
27015UDP + TCPGame traffic + RCON
27020UDPSourceTV (optional)

How is this guide?

40% Off — Limited TimeGet your Team Fortress 2 server todayInstant setup, DDoS protection, and 24/7 support included.
Get a Server

On this page