[BDS-19399] LAN discovery does not adhere to port configurations. Created: 23/Jun/24  Updated: 24/Jun/24  Resolved: 24/Jun/24

Status: Resolved
Project: Bedrock Dedicated Server
Affects Version/s: 1.21.1
Fix Version/s: None

Type: Bug
Reporter: akihazhang Assignee: Unassigned
Resolution: Works As Intended Votes: 0
Labels: None
Environment:

Linux / docker


Attachments: PNG File 屏幕截图 2024-06-23 151122.png    
Issue Links:
Cloners
clones BDS-18213 LAN discovery ignores port settings Resolved
Confirmation Status: Unconfirmed

 Description   

If I set a separate port (e.g., 19199), the server still uses 19132 for LAN discovery.

There is a workaround, such as not starting the server before modifying the server.properties file for the first time. This method works temporarily until I update the server (in my case, from 1.20.73 to 1.20.80), after which it starts using 19132 for LAN discovery again.

[2024-06-23 14:34:38:507 INFO] IPv4 supported, port: 19199: Used for gameplay
[2024-06-23 14:34:38:544 INFO] IPv4 supported, port: 19132 used for LAN discovery

I am using the Linux version of the Bedrock server. The expected behavior is to use the IPv4 port set in server.properties for LAN discovery, rather than falling back to the default 19132 port.



 Comments   
Comment by [Mod] Jarl-Penguin [ 24/Jun/24 ]

Thank you for your report!
However, this issue is Working as Intended.

The report you have submitted is working as intended: see server.properties.

enable-lan-visibility=<value>
# Listen and respond to clients that are looking for servers on the LAN. This will cause the server
# to bind to the default ports (19132, 19133) even when `server-port` and `server-portv6`
# have non-default values.

Please note, that mechanics of the game may change between updates.
Things such as graphics, sounds, world creation, biomes, redstone, villagers, and animals may not work the same in current versions.

Full Version HistoryFeature Requests and Suggestions

Quick Links:
📓 Bug Tracker Guidelines – 💬 Community Support – 📧 Mojang Support (Technical Issues) – 📧 Microsoft Support (Account Issues)
📓 Project Summary – ✍️ Feedback and Suggestions – 📖 Game Wiki

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