Comments (9)
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.
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.
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.
Your docker run
usage looks correct. I'll test it out again using the iOS client.
from docker-minecraft-bedrock-server.
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.
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.
from docker-minecraft-bedrock-server.
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.
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.
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)
- How to install No Potion Particles Mod [ DOCUMENTATION ] - DEPRECATED
- How to Install One Block [ DOCUMENTATION ] HOT 5
- User permissions not letting me toggle as operator HOT 4
- exporting ALLOW_CHEATS=TRUE prevents the server from starting up HOT 3
- Unable to join the server: free(): invalid next size (normal) HOT 2
- Major bugs but logs are empty HOT 6
- Lost data if shutdown and restart? HOT 2
- 1.20.62.03 missing libs error HOT 3
- Command block not working? HOT 1
- Could not connect: Outdated client! HOT 2
- Container not working with Orbstack, for some reason! HOT 2
- Adjust the `docker-compose` command to `docker compose` in the README file HOT 1
- Missing library libssl.so.1.1 HOT 3
- Server.properties command HOT 3
- Can't connect using domain HOT 1
- Try to install mods World Wide Animal HOT 1
- Investigate issues with mv command during version backup
- Looks like the release of 2024.1.0 is failing HOT 2
- How to get the latest version of 1.20.x.y ? HOT 1
- Oracle Cloud port or address fail HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from docker-minecraft-bedrock-server.