So I was looking at a tutorial on how to play with friends in a private server but and my friends are still unable to join. How do I let my friends join my private server?

  • 3
    Could you add the tutorial you've been following to your post? That would make it easier to determine what's going on.
    – Regnegade
    Jun 22, 2021 at 18:42

1 Answer 1


You have to forward ports in your router. Commonly you can reach your routers configuration at but it differs, your firewall might also be blocking connections. Ports that need forwarding seems to be:

  • UDP 27015

  • TCP 27015

  • UDP 27020

  • UDP 27005

(TCP and UDP 27015 should be the only required ones according to Valve: https://support.steampowered.com/kb_article.php?ref=8571-GLVN-8711)

Also enable the developer console and enter sv_lan 0 when you have started your private game.

  • Can you tell where you got the list of ports from, and why one would need to enable the developer console and enter sv_lan 0?
    – Joachim
    Jun 22, 2021 at 19:02
  • 1
    Ports were taken from wiki.teamfortress.com/wiki/Linux_dedicated_server, sv_lan 0 is pretty standard when hosting Valve games, just tells the server that's it's not a LAN server. Jun 22, 2021 at 19:06
  • 1
    Found a Valve KB on required ports, added a clarification to the post. Jun 22, 2021 at 19:14

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .