Replies: 1 comment 3 replies
-
|
Can you share the output of |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello, I'm new to VMs/containers/networking but trying to figure things out.
Running on MacOS (M4 + Tahoe 26.1)
I have a docker-compose file like so:
The two services run images that I found online, the popular itzg/minecraft-server and a test webpage demo. And the configs in the docker-compose file are basically just the default example provided in the documentation.
Ultimately, my goal is to have the services/containers I'm hosting available over the internet, but for now I'm just trying to get it to work over LAN. So I am testing with 2 computers (M4 Pro MBP and M4 Mac Mini).
On both computers I have ran:
And I have verified that things are up and running with:
I have found that the local ip addresses are:
MBP: 192.168.0.10
Mini: 192.168.0.22
My issue:
✅ If I open a web browser on MBP and go to
192.168.0.22:25566, I successfully see the nginx demo site that the mini is hosting.🟥 If I open Minecraft on MBP and "Direct connect" to
192.168.0.22:25565it does not connect✅ If I open Minecraft on Mini and go "direct connect" to
192.168.0.10:25565it DOES connect (weird?)✅ Testing localhost works as expected (on either machine,
localhost:25566shows the nginx demo andlocalhost:25565connects to the Minecraft server.I am confused why I can't connect to the Minecraft server hosted on Mini, especially since I can connect to the nginx demo server (which makes me feel confident docker-compose is working). It makes it even weirder to me that I can connect from Mini to the mc server hosted on MBP, because before I thought maybe the issue was related to a network firewall or something... Idk to be honest.
Additional details:
When running
docker-compose logs -f, I can see logs related to network connection to the nginx demo. However, for the mc server I see logs related to the server starting up, bug no logs at all in response to me attempting to direct connect. My takeaway from this is that any network communication is not reaching the docker container.Anyway, I don't really know what tools I can use to debug, which I would love to receive advice about. I tried
colima sshand then tried to run some random network commands (such asnc,tcpdump, etc... not sure if they are even relevant but I am new to this sort of thing) and I always gotbash: <>: command not found.So I guess I would be super appreciative if anyone could provide me with:
colima ssh(or the proper way to do this)Thanks!
Beta Was this translation helpful? Give feedback.
All reactions