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:
if your trying to connect to a java server on bedrock (on phone using minecraft app through appstore) then you cant
Jump to solution
22 Replies
d0nnae
d0nnaeOP3w ago
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.
Schroedes
Schroedes3w ago
Are you sure you enter the correct local ip and port when trying to connect?
d0nnae
d0nnaeOP3w ago
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
Schroedes
Schroedes3w ago
hold on - you're trying to connect to a Java server with your phone? also keep online_mode=true
Solution
Lunaiskey
Lunaiskey3w ago
if your trying to connect to a java server on bedrock (on phone using minecraft app through appstore) then you cant
Lunaiskey
Lunaiskey3w ago
you have to user geyser for that or you setup bedrock dedicated server software
d0nnae
d0nnaeOP3w ago
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
Lunaiskey
Lunaiskey3w ago
then thats java edition
d0nnae
d0nnaeOP3w ago
with what devices would I play on that?
Lunaiskey
Lunaiskey3w ago
a pc
d0nnae
d0nnaeOP3w ago
alright what is the difference between bedrock and geyser?
Lunaiskey
Lunaiskey3w ago
geyser is an adaptor, so that bedrock players can play on java servers you set it up on the java server, its a plugin
Lunaiskey
Lunaiskey3w ago
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.
d0nnae
d0nnaeOP3w ago
i will likely only have players with phones so bedrock would make more sense, right?
Lunaiskey
Lunaiskey3w ago
probs
d0nnae
d0nnaeOP3w ago
ok, i will look into that, much appreciated hint!
Lunaiskey
Lunaiskey3w ago
just make sure you setup ur stuff to accept udp connections since thats what bedrock uses
d0nnae
d0nnaeOP3w ago
thank you!
Lunaiskey
Lunaiskey3w ago
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
d0nnae
d0nnaeOP3w ago
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
Schroedes
Schroedes3w ago
that would make sense, what Maven said, either install Geyser or get Minecraft for your pc
d0nnae
d0nnaeOP3w ago
Bedrock + network_mode: host in docker compose solved the connectivity issues!

Did you find this page helpful?