Jump to content

Automated Gameserver and port problem


*goobert

Recommended Posts

Afternoon,

 

I hope you can offer a little advice on a recent problem I have found.

 

The automated install on TCAdmin has uncovered a little problem. In its most basic form, the ports on a single box seem to be changing on their own accord.

 

Example: COD 2

 

xx.xx.xx.xx:28960

xx.xx.xx.xx:28961

xx.xx.xx.xx:28962

 

If I have 3 virtual servers of COD 2 on the same ip, with ports as above, all work fine whilst the servers are running.

 

When the servers are set up through the automated process, I have unchecked use default ports and assigned the ports myself.

 

If I close/delete 28961 - for some reason on reboot of the virtual server 28962 changes itself down to 28961. I am failing to notice why.

 

To stop it happening I have had to add the 'additional argument' +set net_port xxxxx (where it is the port the server should always have)

 

We are in the process of integrating modernbill, and with full auto installs I am almost sure this will cause problems.

 

Has anyone had a similar problem, and how was it solved?

 

Any advice at all is appreciated - I'm sure this is something very basic but just can't put my finger on it !

 

Thanks

Link to comment
Share on other sites

You should add the +set net_port xxxxx to the default commandline in the game config for COD2.

 

If you do not specify the port number in the commandline, I would assume the game will search for the first availible one that is open. Which could be causing what you are seeing.

 

By unchecking the "use default ports" option in TCAdmin, and entering a port, you are really doing nothing, as the control point would be the +set net_port which needs to be in the default commandline of the game config to work properly.

 

Your default commandline with the COD2 game config in TCAdmin should look something like this.

 

+set fs_savepath %userfilespath% +set dedicated 2 +set net_ip %serverip% +set net_port %serverport% +set sv_maxclients %slots% +set sv_punkbuster 1 +exec server.cfg +map_rotate

Link to comment
Share on other sites

  • 2 weeks later...

Archived

This topic is now archived and is closed to further replies.

  • Who's Online   0 Members, 0 Anonymous, 6 Guests (See full list)

    • There are no registered users currently online
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Terms of Use