[BDS-13252] Silent Fail if port is already in use Created: 17/May/21  Updated: 24/Aug/23

Status: Reopened
Project: Bedrock Dedicated Server
Affects Version/s: 1.17.10, 1.16.220, 1.17.2, 1.20.12 Hotfix
Fix Version/s: None

Type: Bug
Reporter: Michael Malloy Assignee: Unassigned
Resolution: Unresolved Votes: 2
Labels: crash, server
Environment:

Windows 10


Issue Links:
Duplicate
is duplicated by BDS-18641 Running Multiple BDS Instances on sam... Resolved
Confirmation Status: Confirmed
ADO: 603657

 Description   

Summary
When starting the server, if a port the server tries to use (IE. 19132) is already taken by another program it silently fails. This effects the current version as well as previous versions of the server software.

Steps to reproduce...

  1. Run a server using the Dedicated Server or an unofficial server software using the default 19132 port
  2. While the other server is running, start the dedicated server
  3. Issue happens as it tries to open the port

What I expected to happen...
Normally the server outputs the following:

[INFO] IPv4 supported, port: 19132
[INFO] IPv6 supported, port: 19133

Since this wouldn't be true though, a message of some sort should appear.
A potential message could be "The port [port number] cannot be used. Please make sure no other software is currently using the port."

What actually happened...
The server outputs:

[INFO] IPv4 supported, port: 0
[INFO] IPv6 supported, port: 0

And then stops running without any more cues as to what the issue may be.
Notes...

  • The server could potentially ask for a new port, or ask if the user wants to use the default port if the current port is not the default 19132 port.
  • I have experienced this issue on Windows, and am currently unsure if Linux is affected.


 Comments   
Comment by Michael Malloy [ 02/Jul/21 ]

This bug still exists in the latest version.

Comment by [MCQA] Kinga Izdebska [ 01/Jul/21 ]

Is this still an issue in the latest version? If so, can you please add it to the affected versions (or mention it if you are not the reporter).
This ticket will automatically reopen when you reply.

Comment by Michael Malloy [ 23/May/21 ]

I updated this to include a few ideas and to reformat the description with a more readable format.

Generated at Sat Jan 11 08:02:28 UTC 2025 using Jira 9.12.2#9120002-sha1:301bf498dd45d800842af0b84230f1bb58606c13.