mtoensing / Docker-Minecraft-Bedrock-Server

Starts a Minecraft BEDROCK Server (PE Pocket Edition) for iOS, iPhone, iPad, XBOX and Windows.
https://hub.docker.com/r/marctv/minecraft-bedrock-server
MIT License
55 stars 9 forks source link

Port randomising on restart #11

Closed obidose closed 3 years ago

obidose commented 3 years ago

Hi. This server was working flawlessly for me on 1.16.100

Now on 1.16.200 every time I restart the container I get a random port. Firstly the server seems to allocate the correct default port but then changes its mind and picks a random ipv4 port. As such I am unable to forward the correct port as I don't even know before starting the container what it will be. Any idea what is going on here?

obidose commented 3 years ago
2020-12-12 21:53:35 stdout [INFO] Server started.
2020-12-12 21:53:33 stdout [INFO] IPv6 not supported
2020-12-12 21:53:33 stdout [INFO] IPv4 supported, port: 40804
2020-12-12 21:53:33 stdout [INFO] IPv6 not supported
2020-12-12 21:53:33 stdout [INFO] IPv4 supported, port: 19132
2020-12-12 21:53:27 stdout [INFO] opening worlds/SpnLnd/db
2020-12-12 21:53:27 stdout [2020-12-12 21:53:27 INFO] Difficulty: 2 NORMAL
2020-12-12 21:53:27 stdout [2020-12-12 21:53:27 INFO] Game mode: 1 Creative
2020-12-12 21:53:27 stdout [2020-12-12 21:53:27 INFO] Level Name: SpnLnd
2020-12-12 21:53:27 stdout [2020-12-12 21:53:27 INFO] Session ID fbb85413-47b1-4957-990b-9af77f6af8c1
2020-12-12 21:53:27 stdout [2020-12-12 21:53:27 INFO] Version 1.16.200.2
2020-12-12 21:53:27 stdout [2020-12-12 21:53:27 INFO] Starting Server
2020-12-12 21:53:27 stdout NO LOG FILE! - setting up server logging...
2020-12-12 21:51:39 stdout [INFO] Server started.
2020-12-12 21:51:36 stdout [INFO] IPv6 not supported
2020-12-12 21:51:36 stdout [INFO] IPv4 supported, port: 40036
2020-12-12 21:51:36 stdout [INFO] IPv6 not supported
2020-12-12 21:51:36 stdout [INFO] IPv4 supported, port: 19132
2020-12-12 21:51:30 stdout [INFO] opening worlds/SpnLnd/db
2020-12-12 21:51:30 stdout [2020-12-12 21:51:30 INFO] Difficulty: 2 NORMAL
2020-12-12 21:51:30 stdout [2020-12-12 21:51:30 INFO] Game mode: 1 Creative
2020-12-12 21:51:30 stdout [2020-12-12 21:51:30 INFO] Level Name: SpnLnd
2020-12-12 21:51:30 stdout [2020-12-12 21:51:30 INFO] Session ID d0f1e2ef-ee5e-4e2a-83d8-98ce1c582b27
2020-12-12 21:51:30 stdout [2020-12-12 21:51:30 INFO] Version 1.16.200.2
2020-12-12 21:51:30 stdout [2020-12-12 21:51:30 INFO] Starting Server
2020-12-12 21:51:30 stdout NO LOG FILE! - setting up server logging...
2020-12-12 21:47:57 stdout [INFO] Server started.
2020-12-12 21:47:54 stdout [INFO] IPv6 not supported
2020-12-12 21:47:54 stdout [INFO] IPv4 supported, port: 43137
2020-12-12 21:47:54 stdout [INFO] IPv6 not supported
2020-12-12 21:47:54 stdout [INFO] IPv4 supported, port: 19132
2020-12-12 21:47:48 stdout [INFO] opening worlds/WORLD/db
2020-12-12 21:47:47 stdout [2020-12-12 21:47:47 INFO] Difficulty: 2 NORMAL
2020-12-12 21:47:47 stdout [2020-12-12 21:47:47 INFO] Game mode: 1 Creative
2020-12-12 21:47:47 stdout [2020-12-12 21:47:47 INFO] Level Name: WORLD
2020-12-12 21:47:47 stdout [2020-12-12 21:47:47 INFO] Session ID 26c24e2d-2089-4b84-a5ad-f2af0afdd359
2020-12-12 21:47:47 stdout [2020-12-12 21:47:47 INFO] Version 1.16.200.2
2020-12-12 21:47:47 stdout [2020-12-12 21:47:47 INFO] Starting Server
2020-12-12 21:47:47 stdout NO LOG FILE! - setting up server logging...
2020-12-12 21:39:30 stdout [INFO] Server started.
2020-12-12 21:39:28 stdout [INFO] IPv6 not supported
2020-12-12 21:39:28 stdout [INFO] IPv4 supported, port: 53046
2020-12-12 21:39:28 stdout [INFO] IPv6 not supported
2020-12-12 21:39:28 stdout [INFO] IPv4 supported, port: 19132
2020-12-12 21:39:21 stdout [INFO] opening worlds/WORLD/db
2020-12-12 21:39:21 stdout [2020-12-12 21:39:21 INFO] Difficulty: 2 NORMAL
2020-12-12 21:39:21 stdout [2020-12-12 21:39:21 INFO] Game mode: 1 Creative
2020-12-12 21:39:21 stdout [2020-12-12 21:39:21 INFO] Level Name: WORLD
2020-12-12 21:39:21 stdout [2020-12-12 21:39:21 INFO] Session ID 038157a3-9388-4a82-a73c-60becfd3655a
2020-12-12 21:39:21 stdout [2020-12-12 21:39:21 INFO] Version 1.16.200.2
2020-12-12 21:39:21 stdout [2020-12-12 21:39:21 INFO] Starting Server
2020-12-12 21:39:21 stdout NO LOG FILE! - setting up server logging...
2020-12-12 21:36:34 stdout [INFO] Server started.
2020-12-12 21:36:31 stdout [INFO] IPv6 not supported
2020-12-12 21:36:31 stdout [INFO] IPv4 supported, port: 54544
2020-12-12 21:36:31 stdout [INFO] IPv6 not supported
2020-12-12 21:36:31 stdout [INFO] IPv4 supported, port: 19132
2020-12-12 21:36:24 stdout [INFO] opening worlds/WORLD/db
2020-12-12 21:36:24 stdout [2020-12-12 21:36:24 INFO] Difficulty: 2 NORMAL
2020-12-12 21:36:24 stdout [2020-12-12 21:36:24 INFO] Game mode: 1 Creative
2020-12-12 21:36:24 stdout [2020-12-12 21:36:24 INFO] Level Name: WORLD
2020-12-12 21:36:24 stdout [2020-12-12 21:36:24 INFO] Session ID 2ff2deb0-ae35-4134-9280-468071ca358b
2020-12-12 21:36:24 stdout [2020-12-12 21:36:24 INFO] Version 1.16.200.2
2020-12-12 21:36:24 stdout [2020-12-12 21:36:24 INFO] Starting Server
2020-12-12 21:36:24 stdout NO LOG FILE! - setting up server logging...
mtoensing commented 3 years ago

My guess is that you did something wrong when you first configured your container. Follow the guide in my YouTube Video. And think about donation if this made you happy. Link is here on github.