Digital Paint Discussion Board

Paintball 2: The Game => Help and Support => Topic started by: yossarianuk on March 18, 2008, 04:25:46 PM

Title: Is is possible to change client net port ?
Post by: yossarianuk on March 18, 2008, 04:25:46 PM
Hi.

Is there a way to change the UDP port used by paintball2 ?

Cheers
Title: Re: Is is possible to change client net port ?
Post by: KnacK on March 18, 2008, 04:29:54 PM
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.
Title: Re: Is is possible to change client net port ?
Post by: XtremeBain on March 18, 2008, 04:54:31 PM
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.
Title: Re: Is is possible to change client net port ?
Post by: jitspoe on March 19, 2008, 03:38:12 PM
cl_port, maybe?  I don't remember offhand.  As Bain said, it's randomized each time the game is loaded to prevent attacks.
Title: Re: Is is possible to change client net port ?
Post by: Herron on March 20, 2008, 08:25:51 AM
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.
Title: Re: Is is possible to change client net port ?
Post by: jitspoe on March 20, 2008, 12:02:24 PM
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.
Title: Re: Is is possible to change client net port ?
Post by: Herron on March 20, 2008, 12:07:54 PM
Oops.  I just thought I remembered that Q2MSGs worked based on qport values and that's why you started randomizing them.