Minecraft – How to run multiple servers or worlds at the same time with MineOS Crux

minecraft-java-edition

I am trying to run multiple servers at the same time using MineOS Crux. I am new to this so hopefully this is not obvious. I am experimenting right now with MineOS Crux running on a VirtualBox, and that all runs and works as expected. I can launch the WebUI, and configure the servers, but then when I run the Minecraft client from the Host PC, and try to connect to the servers running on the Virtual PC by using the Add Server screen in client and specifying both IP and Port (as IP:PORT), I seem to only ever be able to connect to one, and only if that one is running on the default port (25565).

I have tried setting different port numbers for the different servers, and that allows them to both start, but then in the client I can't connect to the second one.

I have tried setting port forwarding on my router to both the host PC and the MineOS Crux virtual PC, but no luck either way (although after thought I realized that shouldn't matter because my host PC and my VM server are both inside my router network).

I want to be able to have 2 or more servers running at the same time so that multiple worlds are available from the server.

Is there something I'm missing, or can this not be done? I could perhaps make multiple virtual PCs, and run separate MineOS Crux servers in them, but is that the only way?

Maybe to clarify:

Perhaps my first question should be: Is it possible to run more than one vanilla Minecraft server from a single instance of MineOS Crux and connect to them simultaneously from separate clients?

Best Answer

Well, I found the answer but I can't take credit for it. I emailed the creator of MineOS Crux directly, William Dizon, and he got back to me in the same day! Very impressed.

Turns out that the default installation of MineOS Crux sets up the Linux firewall (iptables) to only accept incoming Minecraft connections on the default port, 25565. That means even though my second server was merrily running away, any attempts at connecting were blocked. Mr. Dizon passed on this link from the MineOS Crux wiki that explains how to add additional ports to the iptables:

https://minecraft.codeemo.com/mineoswiki/index.php?title=Iptables

Once I followed the steps, set up my additional port for the second server, everything worked! I had forgotten about iptables, and that is a little embarrassing, but live and learn... again ;)

Thanks again to Will Dizon!