Page MenuHomeFeedback Tracker

Windows DayZServer Configuration: clientPort
Closed, ResolvedPublic

Description

clientPort = 40000;              // int value, forces the port the clients connect with

This is listed as an "Additional Parameter" for the DayZServer configuration, and setting this value (in ServerDZ.cfg, my used config file) does not change the port that clients use to connect to the game port.

Details

Severity
Trivial
Resolution
Open
Reproducibility
Always
Operating System
Windows 10 x64
Operating System Version
Windows Server 2022 Standard 10.0.20348 / Windows 10 Home 10.0.19045
Category
Dedicated Server
Steps To Reproduce
  1. Install DayZServer files
  2. Place the line in the configuration file
  3. Start the server
  4. Join the server and view network traffic on either the server or the client side
Additional Information

I assume that this may be related to a prior update which stopped forcing the port 2304 to be used by clients. I'm not sure if that unintentionally broke this option, or if this option was meant to be removed from the wiki.

Event Timeline

adfadhbfghdavbdfasg updated the task description. (Show Details)
sanguine00 added a subscriber: sanguine00.EditedMay 27 2024, 3:36 PM

Can confirm that 'clientPort' in the server.cfg does not appear to work. Tried connecting using the Official launcher as well as the in-game browser, and the client is still using a Windows ephemeral port. This was verified with Wireshark running on both the client PC and the server.

Edit: This appears to work if you launch DayZ from the command line and use the documented "-connect:IP:PORT:QUERYPORT" format. So 'clientPort' does appear to work, just not with the Official launcher or in-game browser.

Geez changed the task status from New to Awaiting internal Testing.May 28 2024, 10:17 AM
Geez changed the task status from Awaiting internal Testing to Acknowledged.May 28 2024, 10:20 AM
Geez added a subscriber: Geez.

Hello everyone and thank you for the report.
We have confirmed the problem and are looking into fixing it as soon as possible.
Regards,
Geez

Geez closed this task as Resolved.May 29 2024, 1:59 PM
Geez claimed this task.
ntepup added a subscriber: ntepup.May 29 2024, 10:39 PM

@Geez Noticed this ticket was marked as resolved. Just curious, did this get fixed for an upcoming update? Thank you.

Geez added a comment.May 31 2024, 9:27 AM

Hello sanguine00.
This fix should be included in the upcoming update/hotfix.
Regards,
Geez

BGZ added a subscriber: BGZ.Oct 24 2024, 10:20 PM

Hello,
Seems like this still is an issue..
I have tried to set different ports in clientPort, but client just ignores that (looked through Wireshark).

BGZ added a comment.Oct 25 2024, 12:40 PM

@Geez This clientPort setting/option would be really helpful in order to configure server firewall to not allow any incoming connections from different ports.
Any ideas when this could be fixed?

Geez added a comment.Oct 29 2024, 11:15 AM

Hello BGZ,
We will require more information as to how are you connecting to the server?

BGZ added a comment.EditedNov 1 2024, 12:34 AM

Hello BGZ,
We will require more information as to how are you connecting to the server?

Hey @Geez

Basically, I have a DayZ server running in dedicated Windows Server machine, I have configured parameter clientPort in serverDZ.cfg as shown in the docs (https://community.bistudio.com/wiki/DayZ:Server_Configuration), have tried different ports as well, but without any luck..

I'm using DayZ default launcher to join the server. After connection, I see in Wireshark that my DayZ client is using some random port, not the port which is configured:


Port 2322 is the server game port and second 62100 port is the client port.
And this is not a local server running on the same network, if that matters somehow.

BGZ added a comment.Fri, Nov 22, 2:28 PM

@Geez Hi, any ideas regarding this?