Team Fortress 2
dumbshit Aug 18, 2024 @ 2:30pm
How do i port forward my tf2 dedicated server?
i made a tf2 server and im looking forward to get my friends and other people to join
Originally posted by smat3us:
Before you try to forward, ensure that you're not behind NAT or doubleNAT. Easiest is to get your routers public ipv4 (WAN) and then compare that to one you get from an ipv4 detector website. If the two mismatch, ya're behind NAT and doomed to never be able to serve clients (adresses starting with 192.168 should be only internal/home network, soo if that pops up you have read it wrong). Ofc, this means you need to log into your router.

As for forwarding...
You need to log into your router.
Mark your PC w a reserved static ipv4 adress, in your router.
Then, add a forward rule to your PCs reserved IP with requests inbound on port 27015 both TCP and UDP. Also if your router has a firewall, enable requests on those ports inbound.
Also, enable the afromentioned ports on your PCs firewall too.
Then, reset your PCs net connection soo, that it gets the new static internal adress, if its not already using it.

As far as i remember, this is how you do it.

Finally, to test it, launch your server, try to direct connect with your website detected public ipv4.
If it gets rejected, then you or i missed something.

To test just the server, connect to it via loopback ip (0.0.0.0 or 127.0.0.1)...
If that fails, ehiter servers not listening and/or port's blocked by firewall.
< >
Showing 1-6 of 6 comments
Yellow Dice Aug 18, 2024 @ 2:48pm 
you gotta enter your router if you can't then no server for you
Last edited by Yellow Dice; Aug 18, 2024 @ 2:48pm
apchistuz Aug 18, 2024 @ 2:50pm 
You gotta contact your ISP about that, most of the time it costs money.
there are guides for it, but depending on your isp you might not be able to host anything beyond a lan server (i.e everyone connected to the same router) since it requires a static ip address
Gotta have access to your router for that, most likely. You could try adding "-enablefakeip" as a launch option, maybe it circumvents the need to open ports.

Originally posted by (っ● ‿ ●)っ:
there are guides for it, but depending on your isp you might not be able to host anything beyond a lan server (i.e everyone connected to the same router) since it requires a static ip address
Dynamic IP works just fine, you only need to be aware that your IP may change. Not sure if IPv6 works though.
Last edited by Fireschlong #2Broke4MannUp; Aug 18, 2024 @ 2:59pm
The author of this thread has indicated that this post answers the original topic.
smat3us Aug 18, 2024 @ 2:59pm 
Before you try to forward, ensure that you're not behind NAT or doubleNAT. Easiest is to get your routers public ipv4 (WAN) and then compare that to one you get from an ipv4 detector website. If the two mismatch, ya're behind NAT and doomed to never be able to serve clients (adresses starting with 192.168 should be only internal/home network, soo if that pops up you have read it wrong). Ofc, this means you need to log into your router.

As for forwarding...
You need to log into your router.
Mark your PC w a reserved static ipv4 adress, in your router.
Then, add a forward rule to your PCs reserved IP with requests inbound on port 27015 both TCP and UDP. Also if your router has a firewall, enable requests on those ports inbound.
Also, enable the afromentioned ports on your PCs firewall too.
Then, reset your PCs net connection soo, that it gets the new static internal adress, if its not already using it.

As far as i remember, this is how you do it.

Finally, to test it, launch your server, try to direct connect with your website detected public ipv4.
If it gets rejected, then you or i missed something.

To test just the server, connect to it via loopback ip (0.0.0.0 or 127.0.0.1)...
If that fails, ehiter servers not listening and/or port's blocked by firewall.
Last edited by smat3us; Aug 18, 2024 @ 3:16pm
Micák Aug 18, 2024 @ 4:07pm 
Port Forwarding is sometimes only paid. What you could potentially do is downloading some VM (Virtual Machine) and install Linux there and continue with https://steamcommunity.com/sharedfiles/filedetails/?id=2805700840
Btw u dont wont need to download TF2 just TF2srcds tru SteamCMD.
< >
Showing 1-6 of 6 comments
Per page: 1530 50

Date Posted: Aug 18, 2024 @ 2:30pm
Posts: 6