OpenMU icon indicating copy to clipboard operation
OpenMU copied to clipboard

Change default ports of game servers

Open sven-n opened this issue 1 year ago • 1 comments

Describe the bug Windows uses ports starting from 49152 to establish connections, so the game server ports (starting from 55901) might be problematic.

To Reproduce Steps to reproduce the behavior:

  1. Leave and use your system online for some hours or days
  2. Try to start the OpenMU server on the same system or on a docker instance
  3. Experience that you cannot connect to a game server, because the port is already in use by another process.

Expected behavior The game server default ports should be changed to something below 49152. Maybe 45000 is a good starting port.

Additional context https://learn.microsoft.com/en-us/troubleshoot/windows-server/networking/default-dynamic-port-range-tcpip-chang https://www.sciencedirect.com/topics/computer-science/registered-port#:%7E:text=Dynamic%20ports%E2%80%94Ports%20in%20the,but%20many%20systems%20do%20not

... the ports from 49152 to 65535 can be used dynamically by applications.

sven-n avatar Dec 29 '24 11:12 sven-n

Hey @sven-n , can I look into this one? Which range of ports do you suggest we use? I'll also update the docs to include the new info

Niter88 avatar Oct 17 '25 05:10 Niter88