Team Fortress 2
Team Fortress 2 > Mann vs. Machine > Topic Details
How to host your own MvM server (SIMPLE)
1. Click on the "+" sign on the main menu for "Create Server"
2. Select a map from the scroll down menu (MvM maps for MvM mode obviously)
3. Under the "Game" tab enter a hostname
3b. Otherwise, set it to what you want.
4. Create a server password for private, leave it blank for public
5. Other options are discretionary
6. Launch your server
7. Once in the game, go into the dev console (~ by default if enabled) and type the following (Followed by hitting enter)

sv_lan 0

Once you have entered that, type the following in console(yourmapnamehere being a map YOU choose)

map yourmapnamehere

7a. Your server will reset and load the map up
8. Congratulations, you now have your very own TF2 server!

------------------------EXTRA STUFF/HELP------------------------

Port forward port 27015 to allow hosting if you are having issues
sv_lan 0 lists your game on the server list for all to find and allows players to join
Can't get to the Dev console? Enable it in Options > Keyboard > Advanced...
Here are the three MvM map names

In the launch options for TF2 use +clientport 270xx +clientport 270xx (Replace the x's with numbers you want to use, do not use 27020. And you have to use 05-32, no higher)

Extra help (Thanks to STD|Flinty for these)
List of TF2 CVAR commands

Port Forwarding guides
Last edited by [PIZZA-HUT]; Aug 16, 2012 @ 8:47pm
< >
Showing 1-15 of 116 comments
Please keep this bumped as this is one of the most requested things I have seen around the web today.
Just give it a simple /signed or something.
sasha Aug 16, 2012 @ 10:58am 
Thanks I really needed to know how to do this since I can never play otherwise.
Last edited by sasha; Aug 16, 2012 @ 10:58am
Tringhazi Aug 16, 2012 @ 11:07am 
How do I change the port?
Flint Eastwood Aug 16, 2012 @ 11:13am 
I've been running a server off the hldsupdate tool. I set the server on 2fort and got my friends in who wanted to play then entered the command in to change map to the mvm game mode and any spare spots were instantly filled up with people sat in the hour long queues.

You need to ensure your server is set to 32 player... sadly this might mean people will connect and be stuck in spectator after sitting in a queue for 40minutes. perhaps turning off spectator would help this? but you cant go under 32player or the bots don't spawn. In the end I passworded my server and found 6 people to play.

View this link on how to download the hldsupdatetool and install tf2 server

It mentions using a config in a text file but I couldn't get this to function so what I did was to go into your hldsupdatetool directory/orangebox right click on srcds.exe click create shortcut. (rename the shortcut if you like) then right click on the shortcut go to properties and in the target box Ive put the server commands in i.e.

D:\HLDS\orangebox\srcds.exe -console -game tf -hostport 27015 +maxplayers 32 +map ctf_2fort +rcon_password "pass" +mp_allowspectators 0 +sv_password pass +sv_vote_issue_changelevel_allowed_mvm

Ofcourse you would need to change the location to where your srcds is installed and all the other options to your choices. It does seem overwhelming but if you have a bash at it and play a round a little you'll get there and it wont seem so bad.

you might want to take into account your computer and connection type. An old pentium with 1gig of ram and 1meg internet probably isnt going to cope.

I personally am running a core2quad, 8gb ram with 60meg broadband (350kb/s upload) and coped fine with no one having lagg.

I am the Senate Aug 16, 2012 @ 11:18am 
Accident Aug 16, 2012 @ 11:22am 
How will it appear in the server list? Is there any way to change the server name. I was using srcds but this causes problems every so often.
Gray Fox Aug 16, 2012 @ 11:23am 
how do i change the port!!!!
WARMAGAUNT Aug 16, 2012 @ 11:28am 
please ♥♥♥♥ing explain how to change the port?
In the launch options use +clientport 270xx where client port is > 27005 & <27032. Do NOT use 27020. Updated post.
thewatergamer Aug 16, 2012 @ 11:31am 
how to change port?
Hea♥y Aug 16, 2012 @ 11:33am 
my friends cannot join me and it says that "the server is not responding"
Olimp Aug 16, 2012 @ 11:33am 
Do you have a list of such kind released servers?
Originally posted by =KA=Hea♥y:
my friends cannot join me and it says that "the server is not responding"
You need to port forward
Flint Eastwood Aug 16, 2012 @ 11:33am 
try +hostname namehere in the target box. The name might have to have quote marks.

As for port changing I couldnt do it myself but the command should be hostport so if ingame "rcon hostport *****" from my example about it should be -hostport 27015 but I couldnt get this to work. This is what was mentioned in the forums as how to do it. Perhaps changing the minus to a plus might do it.

if youre using a router you will have to forward the ports ofcourse.
< >
Showing 1-15 of 116 comments
Per page: 15 30 50

Team Fortress 2 > Mann vs. Machine > Topic Details