You can make a simple rule:

port
+tv_port = port +100
+clientport = port + 200

Than you can start 99 servers from 27015 till 27114.
You have always to set tv_port and clientport of all your servers.
I've written for this job a little python-script:

#!/usr/bin/python
import sys, os, re
re_search = r'.+?[-+]port (\d{4,5})'
add_tvport = 100
add_clientport = 200
daemon='srcds_run'
startline = ' '.join(str(i) for i in sys.argv[1:])
port = int(re.match(re_search, startline).group(1))
tv_port = port + add_tvport
clientport = port + add_clientport
execute = './' + daemon + ' ' + startline + ' +tv_port ' +
str(tv_port) + ' +clientport ' + str(clientport)
#print execute
os.system(execute)

Maybe you call the script srcds_run.py. So you can start your servers with:
./srcds.py -game cstrike -port 27015 -ip 123.123.123.123 +map de_dust2
The script runs: ./srcds_run -game cstrike -port 27015 -ip
123.123.123.123 +map de_dust2 +tv_port 27115 +clientport 27215
It will add +100 to port for tv_port and +200 for clientport.

I've tested it for my case with 11 servers (increment +1 per server)

2011/5/5 Saint K. <[email protected]>:
> Hi,
>
> I can confirm weird port behaviour existing in hlds/srcds. We have to spread 
> our ports to prevent running into this limitation. (We use ranges 22000, 
> 23000, 24000, 25000 etc). You also have to configure +clientport . We 
> generally leave 10 ports open between each server, so 22015, 22025, 22035 etc.
>
> Saint K.
>
> -----Original Message-----
> From: [email protected] 
> [mailto:[email protected]] On Behalf Of Marcos Mazza 
> S2 Jéssica Mazza
> Sent: 05 May 2011 16:14
> To: hlds list
> Subject: [hlds_linux] doubts about the limits
>
>
> Good morning.
>
>  I would like to take some questions. I have a reselling company server 
> counter-strike.
> I have over 30 servers in a single ip range. did some testing with other ip 
> detected and  that by opening more than 15 servers HL ip list some steam. 
> There is a limit of ports for each IP?
>
>  Information:
>  Distro: Centos x86
>  Firewall: iptables and SELinux off
>  Dual Xeon - six core
>  48GB memory
>
> att. Marcos Mazza
>
> _______________________________________________
> To unsubscribe, edit your list preferences, or view the list archives, please 
> visit:
> http://list.valvesoftware.com/mailman/listinfo/hlds_linux
>
> _______________________________________________
> To unsubscribe, edit your list preferences, or view the list archives, please 
> visit:
> http://list.valvesoftware.com/mailman/listinfo/hlds_linux
>



-- 
Andre Mueller aka DeaD_EyE
sourceserver.info - german SourceServer-Community

_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives, please 
visit:
http://list.valvesoftware.com/mailman/listinfo/hlds_linux

Reply via email to