Mojira Archive
BDS-4552

Server always listens on port 19132 even if another port is set

I am running a bedrock server on my Windows 10 computer and tried to change the port in the config to run multiple servers at once. I restarted the server and this is what happened:

 

NO LOG FILE! - setting up server logging...
[2020-04-22 17:53:36 INFO] Starting Server
[2020-04-22 17:53:36 INFO] Version 1.14.60.5
[2020-04-22 17:53:36 INFO] Session ID ####################
[2020-04-22 17:53:36 INFO] Level Name: Bedrock level
[2020-04-22 17:53:36 INFO] Game mode: 0 Survival
[2020-04-22 17:53:36 INFO] Difficulty: 1 EASY
[2020-04-22 17:53:36 INFO] opening worlds/Bedrock level/db
[2020-04-22 17:53:37 INFO] IPv4 supported, port: 19134 <- my IPv4 port
[2020-04-22 17:53:37 INFO] IPv6 supported, port: 65535 <- my IPv6 port
[2020-04-22 17:53:37 INFO] IPv4 supported, port: 19132 <- default IPv4 port
[2020-04-22 17:53:37 INFO] IPv6 supported, port: 19133 <- default IPv6 port
[2020-04-22 17:53:37 INFO] Server started.

 

In my server.properties file I have this:

 

server-port=19134
# Which IPv4 port the server should listen to.
# Allowed values: Integers in the range [1, 65535]
server-portv6=65535
# Which IPv6 port the server should listen to.
# Allowed values: Integers in the range [1, 65535]

 I tried to reset the config file and to re-download the server software, but nothing worked. 

Environment

Windows 10 Pro

Linked Issues

Comments3

Are you able to connect using those ports? Whenever my server starts up it shows me 4 different port numbers but the last two always seem to be random and i cannot connect using them.

 

07:09:45
IPv4 supported, port: 19132
IPv6 supported, port: 19133
IPv4 supported, port: 37149
IPv6 supported, port: 45605

...


07:18:46
IPv4 supported, port: 19132
IPv6 supported, port: 19133
IPv4 supported, port: 56653
IPv6 supported, port: 44271

Yes, I am able to connect using these ports and it is impossible to run 2 servers at once.

We're going to be tracking this issue as BDS-3989, so this ticket is being resolved and linked as a duplicate.

Please feel free to comment with any information you believe is missing from the report and previous comments

Quick Links:
📓 Issue Guidelines – 💬 Community Support – 📧 Customer Support – ✍️ Feedback and Suggestions – 📖 BDS Wiki – 📖 FAQs

History3

IonicEcko

Deleted comment:

Original Description by Jahus:
From server.properties:

server-port=19131
server-portv6=19134

When server is ran:

… }}{{INFO] IPv4 supported, port: 19131
… }}{{INFO] IPv6 supported, port: 19134
… }}{{INFO] IPv4 supported, port: 19132
… }}{{INFO] IPv6 supported, port: 19133
… }}{{INFO] Server started.

As you can see, the server ran on defined ports, but also on default ones.

It looks like the server always runs 2 other ports after running on the ones defined in server.properties.

In instance, if you set default ports in server.properties, the server adds two random ports.

Example:

… }}{{INFO] IPv4 supported, port: 19131
… }}{{INFO] IPv6 supported, port: 19134
… }}{{INFO] IPv4 supported, port: 42484
… }}{{INFO] IPv6 supported, port: 54985
… }}{{INFO] Server started.

I don't see why it should do such a thing. Especially that if the ports are random, we can't create a proper firewall rule for them.

Finally, I want to point out that this behavior is new and wasn't present in 1.11.2.1. Here is a typical output from the latter:

… }}{{INFO] IPv4 supported, port: 19131
… }}{{INFO] IPv6 supported, port: 19134
… }}{{INFO] Server started.

This issue is preventing me from launching 2 servers as services; one on default ports (needed) and another on other ports because the one that doesn't use default port may occupy default ports if ran first. This would make the other server unable to run because the ports are already in use.

IonicEcko
IonicEcko

Resolution: UnresolvedDuplicate

Duplicate
Rooot (RoootTheFox)
1
1
Unconfirmed
1.14.60