On Δευτέρα, 3 Σεπτέμβριος 2012 10:33:06 πμ, Christer Solskogen wrote:
Hi!
Is it possible to run multiple TF2 servers on one machine, which is
behind NAT? If yes, and if you do something like that, how do you do
it? Do you have several installations of TF? Or just several
server.cfgs? What about tf_server_identity_account_id, just one or one
pr. server / server.cfg?
If you are behind a NAT router, I each server must have his own
hostport, clientport, tv_port and steamport. You can set these at start
command like so:
srcds.exe (or srcds_run if you are using linux) ... ... +hostport xxxxx
+clientport xxxxx +tv_port xxxxx -steamport xxxxx
If you want to completely disable TV, instead of adding +tv_port xxxxx
you should add -nohltv.
Be careful when specifying a steamport. From my tests the server will
actually bind to the (steamport + 1) udp port. So for instance if you
set steamport to let's say 28000 your server will use 28001.
Additionally don't give consecutive steamport numbers. For instance
don't give on one server 28000 and on the other 28001. Even though they
will bind the +1 port, for some reason this doesn't work. For
consecutive port numbers prefer an addition of +2, eg one server 28000
and the other 28002.
As for the installations, you only need one. You only need several
server.cfg files. You can specify which server uses which server cfg
either by +exec or by +servercfgfile at the startup command.
As for the tf_server_identity_account_id, you must have one for each
server instance.
Lastly remember to forward the ports you've set to each server on your
router so that your servers are accessible by the world.
Hope I helped!
-Dimitrios.
PS. What I've written about the steamport comes from personal
experience and tests on a linux machine I've got. I don't know if the
way it works has been confirmed by Valve, it's just the way it has
always worked for me on my machine.
_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives, please
visit:
https://list.valvesoftware.com/cgi-bin/mailman/listinfo/hlds_linux