Digital Paint Discussion Board
Paintball 2: The Game => Help and Support => Topic started by: yossarianuk on March 18, 2008, 04:25:46 PM
-
Hi.
Is there a way to change the UDP port used by paintball2 ?
Cheers
-
Yes, as long as the server is talking the same port as you want to change to.
or....
You could use PAT = port address translation - on your firewall. Where you have your wirewall change the outbound and inbound port.
-
The PB2 client uses a randomized client port to protect against connectionless packet exploits (Q2MSG is the common tool for this exploit). I believe you can override this by specifying the client port in the command line, but I would recommend against using the "default" value of 27901 since it would be trivial for someone to fire up Q2MSG and start stuffing commands down to the client.
-
cl_port, maybe? I don't remember offhand. As Bain said, it's randomized each time the game is loaded to prevent attacks.
-
Add this to the end of your command line (where ##### is whatever UDP port you want to use):
+set qport #####
You can't change it in-game because it's write protected.
-
Actually, qport is something different - that's attached to the packets so if two people connect from the same IP and port, the server can distinguish between them.
-
Oops. I just thought I remembered that Q2MSGs worked based on qport values and that's why you started randomizing them.