Giter VIP home page Giter VIP logo

Comments (9)

itzg avatar itzg commented on July 21, 2024

I actually hadn't tried running on a port other than 19132. I just now tried it and at first the client (Windows 10) didn't connect. After quickly trying my 19132 server I tried connecting again to the 19135 and it succeeded. What's strange is the "Servers" view still shows a red indicator.

Can you try again to see if you are able to connect to your 19135 instance even though the status is showing red?

from docker-minecraft-bedrock-server.

mschindl avatar mschindl commented on July 21, 2024

You are right. I have to try it more as once and sometimes it works with the first try.
Thank you

from docker-minecraft-bedrock-server.

mschindl avatar mschindl commented on July 21, 2024

Sorry, but it's still not working if I have two containers running, because the iOS app still connect to Container 1 instead of Container 2. If I stop Container 1 then I can connect to Container 2 on the right port :/

Container 1: Survival Mode on Port 19132
Container 2: Creative Mode on Port 19135

docker run -d -it -e EULA=TRUE -p **19132:19132**/udp -e SERVER_NAME=MSSURVIVAL -e LEVEL_NAME=MSSURVIVALLEVEL1 -e ONLINE_MODE=false -e MAX_PLAYERS=20 -v $locpath:/data -e LEVEL_TYPE=DEFAULT -e GAMEMODE=SURVIVAL -e DIFFICULT=survival --restart unless-stopped --name minecraft-surv itzg/minecraft-bedrock-server

docker run -d -it -e EULA=TRUE -p **19135:19132**/udp -e SERVER_NAME=MSCREATIVE -e LEVEL_NAME=MSCREATIVELEVEL1 -e ONLINE_MODE=false -e MAX_PLAYERS=50 -v $locpath:/data -e LEVEL_TYPE=DEFAULT -e GAMEMODE=creative -e DIFFICULT=PEACEFUL --restart unless-stopped --name minecraft-crea itzg/minecraft-bedrock-server

Any idea why?

from docker-minecraft-bedrock-server.

itzg avatar itzg commented on July 21, 2024

Your docker run usage looks correct. I'll test it out again using the iOS client.

from docker-minecraft-bedrock-server.

itzg avatar itzg commented on July 21, 2024

I'm sorry @mschindl , this issue fell off my radar and I am just now getting back to researching this. I was able to create two separate servers like yours and connect in the iOS version with two separate configurations; however, when I went to reconnect both failed until I forced the iOS client to exit. After starting the client again the connections worked again.

Are you finding that connecting to your creative server fails or does it connect to the survival server (on port 19132) instead?

from docker-minecraft-bedrock-server.

mschindl avatar mschindl commented on July 21, 2024

After starting the client again the connections worked again.

You are right, if you mean the visibility in tab "Friends" in the iOS client.
But, you can also add a server manually and (mostly) it worked without restart the app.

Are you finding that connecting to your creative server fails or does it connect to the survival server (on port 19132) instead?

That's the issue, the iOS client connect everytime to port 19132 instead to use the port 19135

Following configuration in the iOS app doesn't work and it tries to connect always on the port 19132. I saw it on the container logs that the user always connect to container1 and not to the second one with the creative mode.

image

from docker-minecraft-bedrock-server.

mschindl avatar mschindl commented on July 21, 2024

I tested it again and it worked currently :/
I will come back when I know what was the issue... (I upgraded a lot of times Ubuntu after I opened the issue #9)

Thank you for your help

from docker-minecraft-bedrock-server.

itzg avatar itzg commented on July 21, 2024

I’m suspecting the UDP routing is making less stable than I know I’m used to with the Java edition server. Speaking of Ubuntu, when I tried this with microk8s the network connectivity didn’t work at all.

from docker-minecraft-bedrock-server.

mschindl avatar mschindl commented on July 21, 2024

Solution for me is:

docker network create -d macvlan --subnet=10.1.1.0/24 --gateway=10.1.1.254 -o parent=enp0s31f6 net-mc

docker run -d -it
-e EULA=TRUE -p 19132:19132/udp
-e SERVER_NAME=MC-Kreativ1
-e LEVEL_NAME=MC-Kreativ1
-e ONLINE_MODE=false
-e MAX_PLAYERS=50
-v $locpath:/data
-e LEVEL_TYPE=DEFAULT
-e GAMEMODE=creative
-e DIFFICULTY=normal
*--net net-mc
--ip=10.1.1.2 *

--restart unless-stopped
--name mc-crea1 itzg/minecraft-bedrock-server

from docker-minecraft-bedrock-server.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.