Cannot access minecraft server through local network
I have setup a minecraft server in my docker stack using the default docker-compose configuration, but I cannot access the server in game ,after a while it says "unable to connect". Docker container is up/healthy, container logs say say successfully started, no errors
Solution:Jump to solution
if your trying to connect to a java server on bedrock (on phone using minecraft app through appstore) then you cant
22 Replies
I just tried "https://mcsrvstat.us" with my public IP (after forwarding in my router) and its showing the method of the day from the server. But i also cannot connect to it with my public IP.
Are you sure you enter the correct local ip and port when trying to connect?
yes, I have multiple containers running on that server, so i know that IP very well and i can access them all. I am using the default port 25565, which i also enter in minecraft
i feel like there must be some command or so that I need to change. the server is running and that webpage can even access it, but i cant connect with my phone or my kids tablet
i tried online_mode=false to no effect
hold on - you're trying to connect to a Java server with your phone?
also keep online_mode=true
Solution
if your trying to connect to a java server on bedrock (on phone using minecraft app through appstore) then you cant
you have to user geyser for that
or you setup bedrock dedicated server software
i am using android phone and tablet to play, correct
the docker image is from itzg/minecraft-server, the very first you find when looking to set something up
then thats java edition
with what devices would I play on that?
a pc
alright what is the difference between bedrock and geyser?
geyser is an adaptor, so that bedrock players can play on java servers
you set it up on the java server, its a plugin
if you wanna beable to play on your phone, you can also use https://www.minecraft.net/en-us/download/server/bedrock
Minecraft.net
Minecraft Bedrock Server Download
Discover your own brand of fun when you download the Minecraft bedrock server. Play unique mini-games, collaborate with friends & more with these servers.
i will likely only have players with phones so bedrock would make more sense, right?
probs
ok, i will look into that, much appreciated hint!
just make sure you setup ur stuff to accept udp connections since thats what bedrock uses
thank you!
tcp doesnt work with bedrock
also if your phone is connected to the same network as your server, then you will have to use either the local ip the server has, im sure linux has commands to show you exactly which one. or i think 127.0.0.1 is another ip that routes to localhost
i am pretty sure the problem comes down to this bedrock thing. Thats why it also suggested 19132 on my phone when everywhere it said 25565 is the default port :X
that would make sense, what Maven said, either install Geyser or get Minecraft for your pc
Bedrock + network_mode: host in docker compose solved the connectivity issues!