Yep.  I use "+port" and "-steamport" in my SRCDS command-lines.
I have never tried to over-ride the "+clientport" option.  What is a
mystery to me is why it needs any more ports than "+port" and
"-steamport".  Further, it seems to always grab TWO "client ports" per
instance - not just ONE.

Also, I just double-checked my HLDS port usage.  That doesn't use
anything other than "+port" and -"sport" (instead of "-steamport").
There doesn't seem to be any need for the GoldSrc/HLDS to use any
ports other than that.


On Sat, Feb 8, 2014 at 3:46 PM, Rudy Bleeker <rblee...@gmail.com> wrote:
> Yes there are indeed 3 variables that you can set which control the
> ports your srcds instance uses.
>
> 1. +hostport (default 27015) opens both a TCP and a UDP port
> 2. +clientport (default 27005) opens a UDP port
> 3. -steamport (I guess the default is 26900) opens a UDP port on the
> number +1 for some reason
>
> there's also the -port command line option which controls (and I
> believe overrules, but I've never tested that) the same port as
> +hostport does.
>
> On Sun, Feb 9, 2014 at 12:10 AM, Weasels Lair <wea...@weaselslair.com> wrote:
>>> Rudy Bleeker Sat, 08 Feb 2014 05:24:51 -0800
>>>
>>> In reality the -steamport is 1 higher than what you
>>> set it to, right? I remember reading something about
>>> this a while ago.
>>
>> That's effectively correct.
>>
>> In addition to the game port and the steam port, I also have noticed
>> each instance open several out-bound client ports in the 27000-series.
>>  Some sort of steam "client port"?
>>
>> But explicitly specifying the game port and the steam port seems to be
>> sufficient to allow multiple SRCDS instances to operate on the same IP
>> address.  Whatever that other/extra port is, it seems to be
>> dynamically grabbing whatever's available without creating any
>> conflicts.
>>
>> Below are some "netstat" captures from a Debian Linux server running 3
>> instances of TF2, plus a couple other Valve SRCDS titles, plus several
>> mods - all sharing the same IP address.  You will note, that in
>> addition to the specified game-ports (6000-series in my case), and the
>> specified steam ports (7000-series in my case), there are several
>> other ports each seems to dynamically grab as needed.
>>
>> Obviously, this is all best viewed in a fixed-pitch font.
>>
>> Note: Output is parsed from "netstat --all --inet --numeric-ports
>> --program --extend" command while logged-in as the account that the
>> game servers operate under.
>>
>> TF2, instance 1 of 3
>> ====================
>> Proto Recv-Q Send-Q Local Address           Foreign Address
>> State       User       Inode       PID/Program name
>> -----------------------------------------------------------------------------------------------------------------------
>> tcp        0      0 192.30.161.61:6301      0.0.0.0:*
>> LISTEN      whatever   2395002767  1211/srcds_linux
>> udp    12096      0 0.0.0.0:6301            0.0.0.0:*
>>          whatever   2395002763  1211/srcds_linux
>> udp        0      0 0.0.0.0:7302            0.0.0.0:*
>>          whatever   2395054751  1211/srcds_linux
>> udp        0      0 0.0.0.0:27005           0.0.0.0:*
>>          whatever   2395002764  1211/srcds_linux
>> udp        0      0 0.0.0.0:27020           0.0.0.0:*
>>          whatever   2395002766  1211/srcds_linux
>>
>> TF2, instance 2 of 3
>> ====================
>> Proto Recv-Q Send-Q Local Address           Foreign Address
>> State       User       Inode       PID/Program name
>> -----------------------------------------------------------------------------------------------------------------------
>> tcp        0      0 192.30.161.61:6303      0.0.0.0:*
>> LISTEN      whatever   2395036130  1268/srcds_linux
>> udp        0      0 0.0.0.0:6303            0.0.0.0:*
>>          whatever   2395036127  1268/srcds_linux
>> udp        0      0 0.0.0.0:7304            0.0.0.0:*
>>          whatever   2395105669  1268/srcds_linux
>> udp        0      0 0.0.0.0:27007           0.0.0.0:*
>>          whatever   2395036128  1268/srcds_linux
>> udp        0      0 0.0.0.0:27022           0.0.0.0:*
>>          whatever   2395036129  1268/srcds_linux
>>
>> TF2, instance 3 of 3
>> ====================
>> Proto Recv-Q Send-Q Local Address           Foreign Address
>> State       User       Inode       PID/Program name
>> -----------------------------------------------------------------------------------------------------------------------
>> tcp        0      0 192.30.161.61:6305      0.0.0.0:*
>> LISTEN      whatever   2395082244  1351/srcds_linux
>> udp     1344      0 0.0.0.0:6305            0.0.0.0:*
>>          whatever   2395082241  1351/srcds_linux
>> udp        0      0 0.0.0.0:7306            0.0.0.0:*
>>          whatever   2395123039  1351/srcds_linux
>> udp        0      0 0.0.0.0:27011           0.0.0.0:*
>>          whatever   2395082242  1351/srcds_linux
>> udp        0      0 0.0.0.0:27026           0.0.0.0:*
>>          whatever   2395082243  1351/srcds_linux
>>
>> Counter-Strike:Source
>> =====================
>> Proto Recv-Q Send-Q Local Address           Foreign Address
>> State       User       Inode       PID/Program name
>> -----------------------------------------------------------------------------------------------------------------------
>> tcp        0      0 192.30.161.61:6307      0.0.0.0:*
>> LISTEN      whatever   2395127256  1421/srcds_linux
>> udp        0      0 0.0.0.0:6307            0.0.0.0:*
>>          whatever   2395127252  1421/srcds_linux
>> udp        0      0 0.0.0.0:7308            0.0.0.0:*
>>          whatever   2395143869  1421/srcds_linux
>> udp        0      0 0.0.0.0:27012           0.0.0.0:*
>>          whatever   2395127254  1421/srcds_linux
>> udp        0      0 0.0.0.0:27027           0.0.0.0:*
>>          whatever   2395127255  1421/srcds_linux
>>
>> Half-Life DM:Source
>> ===================
>> Proto Recv-Q Send-Q Local Address           Foreign Address
>> State       User       Inode       PID/Program name
>> -----------------------------------------------------------------------------------------------------------------------
>> tcp        0      0 192.30.161.61:6309      0.0.0.0:*
>> LISTEN      whatever   2395157135  1493/srcds_linux
>> udp        0      0 0.0.0.0:6309            0.0.0.0:*
>>          whatever   2395157131  1493/srcds_linux
>> udp        0      0 0.0.0.0:7310            0.0.0.0:*
>>          whatever   2395184951  1493/srcds_linux
>> udp        0      0 0.0.0.0:27010           0.0.0.0:*
>>          whatever   2395157133  1493/srcds_linux
>> udp        0      0 0.0.0.0:27025           0.0.0.0:*
>>          whatever   2395157134  1493/srcds_linux
>>
>> OrangeBox Mod, 1 of 2
>> =====================
>> Proto Recv-Q Send-Q Local Address           Foreign Address
>> State       User       Inode       PID/Program name
>> -----------------------------------------------------------------------------------------------------------------------
>> tcp        0      0 192.30.161.61:6401      0.0.0.0:*
>> LISTEN      whatever   2395208908  1573/srcds_i486
>> udp        0      0 0.0.0.0:6401            0.0.0.0:*
>>          whatever   2395208905  1573/srcds_i486
>> udp        0      0 0.0.0.0:7402            0.0.0.0:*
>>          whatever   2395328628  1573/srcds_i486
>> udp        0      0 0.0.0.0:27008           0.0.0.0:*
>>          whatever   2395208906  1573/srcds_i486
>> udp        0      0 0.0.0.0:27023           0.0.0.0:*
>>          whatever   2395208907  1573/srcds_i486
>>
>> OrangeBox Mod, 2 of 2
>> =====================
>> Proto Recv-Q Send-Q Local Address           Foreign Address
>> State       User       Inode       PID/Program name
>> -----------------------------------------------------------------------------------------------------------------------
>> tcp        0      0 192.30.161.61:6409      0.0.0.0:*
>> LISTEN      whatever   2395239522  1633/srcds_i486
>> udp        0      0 0.0.0.0:6409            0.0.0.0:*
>>          whatever   2395239519  1633/srcds_i486
>> udp        0      0 0.0.0.0:7410            0.0.0.0:*
>>          whatever   2395246348  1633/srcds_i486
>> udp        0      0 0.0.0.0:27006           0.0.0.0:*
>>          whatever   2395239520  1633/srcds_i486
>> udp        0      0 0.0.0.0:27021           0.0.0.0:*
>>          whatever   2395239521  1633/srcds_i486
>>
>> SDK 2013 Mod
>> ============
>> Proto Recv-Q Send-Q Local Address           Foreign Address
>> State       User       Inode       PID/Program name
>> -----------------------------------------------------------------------------------------------------------------------
>> tcp        0      0 192.30.161.61:6411      0.0.0.0:*
>> LISTEN      whatever   2395280250  1703/srcds_linux
>> udp        0      0 0.0.0.0:6411            0.0.0.0:*
>>          whatever   2395280247  1703/srcds_linux
>> udp        0      0 0.0.0.0:7412            0.0.0.0:*
>>          whatever   2395294585  1703/srcds_linux
>> udp        0      0 0.0.0.0:27009           0.0.0.0:*
>>          whatever   2395280248  1703/srcds_linux
>> udp        0      0 0.0.0.0:27024           0.0.0.0:*
>>          whatever   2395280249  1703/srcds_linux
>>
>> _______________________________________________
>> To unsubscribe, edit your list preferences, or view the list archives, 
>> please visit:
>> https://list.valvesoftware.com/cgi-bin/mailman/listinfo/hlds_linux
>
>
>
> --
> Idleness is not doing nothing. Idleness is being free to do anything.
>   - Floyd Dell
>
> _______________________________________________
> To unsubscribe, edit your list preferences, or view the list archives, please 
> visit:
> https://list.valvesoftware.com/cgi-bin/mailman/listinfo/hlds_linux

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

Reply via email to