Hosting a Mindustry server
Mindustry is a factory-building tower defence game with a lively multiplayer scene. Pat Host can host a dedicated Mindustry server for free, so your friends can join even when your own game is closed.
Why a dedicated server?
Mindustry lets you host a game from your own copy, but the game ends for everyone when you close it, and friends have to deal with your home network. A dedicated server runs on its own, keeps the map going between sessions and gives everyone one address to join.
Create the server
- Make sure you have a panel account and a linked Discord account; see creating a free server.
- In the panel's free server creator, choose Other games, then Mindustry.
- Pick the location closest to your players: the United Kingdom, Australia or Canada.
- Choose the resources. Mindustry needs much less memory than Minecraft, so it has its own, smaller scale. The default suits a normal game with friends; very large maps or many players may need more.
- Create the server. It installs and starts on its own.
Match the version
Mindustry is strict about versions: players can only join a server that runs the same build of the game as they do. If players see a version error when joining, check which build they have (it is shown in the game's main menu) and set the server to match in the Versions tab. When the game updates, update the server too.
Join the server
- In the panel, open the Network tab and note the address and port.
- In Mindustry, choose Play, then Join Game.
- Choose Add Server and type the address. If it is not found, type the address with the port, as
address:port. - Select the server to join.
Why the port sometimes matters: unlike Minecraft, Mindustry's protocol cannot tell the server which name a player typed, so every Mindustry server needs its own port. Your server's address has a DNS record that tells the game which port to use when you type the name without one. Typing the port yourself always works.
Using the server console
The panel's Console tab is the Mindustry server console. Type help to list every command for your version. Some of the most useful ones:
statusshows whether a game is being hosted, the map and the players.mapslists the maps the server has.hoststarts hosting a game, optionally with a map name and game mode, for example a survival or attack game.saveandloadsave the game to a slot and load it back.configshows and changes server settings, such as the server name and message shown in the server list.kickandbanremove problem players, andadminmanages admins.
If the console shows the server is running but not hosting a game, players cannot join until you host one.
Sleeping and waking
Like free Minecraft servers, free Mindustry servers go to sleep when nobody has played for a while and wake when a player tries to join. The first connection to a sleeping server starts it; if it is not ready yet, wait a moment and join again. The Settings tab shows how long your server waits before sleeping. Read keeping your free server for how sleeping and inactivity work.
Save the game before you stop the server yourself, so nothing is lost if the map does not load the way you left it.
Maps, mods and saves
- Custom maps can be uploaded with the Files tab into the server's maps folder inside
config. Usereloadmapsor a restart to pick them up. - Server plugins and mods go in the mods folder inside
config. Players need the same mods for content mods. - Saves are in the saves folder inside
config. Download them from the Files tab, or take a backup in the Backups tab, before trying anything risky.
