Please limit port range
xnor
Join Date: 2013-09-06 Member: 187916Members, Reinforced - Gold
Hey,
I am really fed up with servers that set to port to something seemingly completely random.
I've set up QoS in my network and it works extremely well, but only if the game doesn't keep changing its ports all over the place. But thats exactly the case with NS2 servers.
Standard range, afaik, is 27000 to 27015 (+1). It would be fine if NS2 extended this range to 27050, but right now I see servers with ports like 14000!
So my ping is of course crap...
Please, server admins consider this, or devs please add a warning or something to the port switch if outside of the standard range. Thank you!
I am really fed up with servers that set to port to something seemingly completely random.
I've set up QoS in my network and it works extremely well, but only if the game doesn't keep changing its ports all over the place. But thats exactly the case with NS2 servers.
Standard range, afaik, is 27000 to 27015 (+1). It would be fine if NS2 extended this range to 27050, but right now I see servers with ports like 14000!
So my ping is of course crap...
Please, server admins consider this, or devs please add a warning or something to the port switch if outside of the standard range. Thank you!
Comments
Correct solution to this problem is to allow setting of a __client__ port, so you can QoS on the origin port(s) or QoS with deep packet inspection to dynamically do QoS for ns2.
You simply can't force a admin to use a port within a given and so small range. Especially not only because some users may have played around with their local network settings. This is more or less equal to the request "Do not allowed servers to be outside the usa, because I have high ping on europe servers.". They pay for the servers, so if you do not like what they do there, don't go there.
What kind of network you got that you think you have to set a QoS rule to play NS2? If you are not file sharing with caped up and download at the same time, or doing anything else equal to this, you should not need that at all...
Yes, 27000 might already be in use, which is why there is a range of ports available. But I regularly see servers using ports far outside that range.
Client ports are not a solution since any client can use almost any port for any application and therefore use whatever QoS class it likes - not how it's supposed to work.
Server ports are fixed for all other games and applications I do QoS with .. and it works perfectly.
Deep packet inspection is not an option since I don't want to stress the router further and also don't want to depend on an application layer protocol (which might change btw). There might also be a problem with connection tracking, depending on the protocol, which may make this impossible.
Even if each game server required two consecutive ports I hardly doubt that anyone is running more than 8 different server on one IP (27000 - 27015).
With the range extended to 27050 even 25 different servers.
What you're looking for is in fact the ability to set a static source port. This worked great for Team Fortress 2. Instead of a random source port it selects port 27005 as the client source port if available (and it usually is, you seldom run more than one copy of a game on a single machine...), otherwise 27006 etc. NS2 is already all Half-Life/Source/Quakey and uses 27015 as the default server port, so it might as well go all the way and use 27005 as a client port. That one is sure to be picked up by home routers that claim to have automatic QoS on the box! Otherwise a startup argument for client port would be sweet.
Do you know what NAT is? It's usually used to hide the IP address space of the network the client is in, which doesn't have anything to do with what I'm talking about. I'm talking about server ports.
Servers that are behind firewalls may have to use DNAT, but again I don't see a problem. Why do you think it's impossible? It's trivial to set up and has to be done regardless of the port range anyway if you're behind a firewall.
As I wrote before, any application could use a port in that range for any protocol and therefore circumvent QoS rules ... that's why it's usually done based on server ports in the first place.
I don't want a hard restriction on the port range, but maybe a warning if the server port is outside the range.
Btw: Just tried to play on UWE official server ... port 28015 ... unplayable.
P2P software uses "server ports" all over the place. Why do you even need QoS? If it's because you got BitTorrent running on your connection then there's nothing preventing peers from using your game ports, even over UDP.
Either way, your need is way too special to bother players or admins with any restrictions or warnings.
Because I'm in a private network with multiple people who share the internet connection. Someone downloading a file over HTTP causes lag spikes without QoS. Someone sending an email with a large attachement even causes timeouts.
With QoS I can play (other) games with <50 ms while others can up/download at almost full speed.
There is nothing special about it. I just want admins to know what they are doing when they're changing the port.
Anyway: for the time being, I will only be playing on servers using ports in the range 27000 - 27015 with nice ping. Unfortunately that's trial and error since the port is only shown on connect in the console...
It works for every other game so far, ranging from guild wars to counter strike .... why shouldn't it work for ns2?
I know this is an old thread but... I'm sure is speeds could be slow by some peoples thoughts. But that is exactly why he is using QOS.
xnor: What are you using for QOS? Does it allow for Priority based on IP address? I was using Gargoyle Router firmware for its QOS. It's quite good and lets you configure to Ip or port.
Currently I'm running ClearOS which I don't recommend for QOS. I only started running it for its Dual Wan capability which is broken so I keep everyone on one connection, while I hog the other one.
Or separate ip addresses.
Also why not just apply the QOS on a MAC id level. Just make it so all traffic regardless of what it is that comes from your server box gets priority over everything else.