The best Mindustry server configuration depends on how your group plays. For a temporary session in one home, use the built-in LAN or Steam host. For an always-available world, outside players, or a larger community, run a dedicated headless server. A strong private-group baseline is a named server with a clear MOTD, a player limit, whitelist access, anti-spam and strict protection, autosaves, backups, and optional auto-pause. Keep networking, moderation, and persistence settings separate from gameplay rules such as PvP, waves, and attack mode, then verify command syntax on the exact server release you installed.
This guide explains the hosting choices, dedicated setup, configuration commands, internet access, recommended profiles, rule presets, and recovery steps without assuming a universal default or a particular group size.
Which Mindustry hosting model should you choose?
Choose a local host for a short session with people on the same network. Choose a dedicated headless server when the world must remain available after the host stops playing, when players connect from outside the home, or when administration needs to continue independently of a game client.
| Hosting model | Best use | Availability | Administration | Network exposure |
|---|---|---|---|---|
| LAN or Steam host | A few friends on one household network and temporary co-op | Only while the game is open | Managed through the in-game host flow | Nearby clients discover it automatically; normally local-network only |
| Dedicated headless server | Persistent worlds, remote players, larger or regularly scheduled groups | Runs as an independent process | Terminal commands and server configuration | Local-only, home-hosted with forwarding, or hosted on a separate machine |
When a LAN or Steam host is enough
Open the in-game Host Multiplayer Game flow when everyone is on the same household network and nobody needs the world to continue after the session. The built-in server is simple, and nearby clients can discover it without a separate installation. Closing the game ends the server, so it is a poor fit for an always-on community or a world that should progress while the usual host is away.
When to use a dedicated server
A dedicated server is a standalone, headless version of Mindustry operated from a terminal. It can run on a dedicated Linux or Windows machine, a spare computer, or a hosted virtual machine. The process remains available independently of a player’s game client, which makes it the practical choice for scheduled events, persistent saves, and remote access.
How do I install and start a dedicated Mindustry server?
Install Java, download the server release you intend to run, launch its JAR, inspect the commands exposed by that release, and then host a map. The exact command set can evolve, so treat help on the running server as authoritative rather than copying syntax from an older version.
- Prepare the machine. Install a supported Java runtime on the Linux or Windows host and create a directory dedicated to the server files and saves.
- Download a release. Obtain the desired server JAR from the project’s release channels and place it in that directory.
- Launch the process. From the server directory, run
java -jar [server].jar, replacing the bracketed filename with the actual JAR name. - Inspect available commands. At the server prompt, enter
help. Repeathelp [command]for any command whose arguments are unclear. - Host a map. Enter
host <mapname> [mode]. If you omit the mode, the documented behavior is survival with a random map; specify both values when the group needs a predictable scenario. - Apply persistent settings. Use
config [name] [value...]for server-level options. If the same host command should run after launch, place it instartCommands, then verify the resulting syntax withhelp. - Test before inviting players. Run
status, check the server identity and player limit, and usedumpsettingsto capture the active values for troubleshooting.
Keep the JAR, configuration, saves, and backups in a location that the service account can read and write. A restart should be treated as a normal maintenance operation: the process must be able to find its save data and execute its startup commands without an interactive game client.
What is the difference between server configuration and gameplay rules?
Administration.Config controls how the server operates; Rules controls how a hosted world plays. Separating these layers prevents a PvP event rule from being confused with an access-control or backup setting.
| Layer | Typical controls | How to inspect or change it |
|---|---|---|
| Administration.Config | Server name, description, MOTD, port, player access, anti-spam, strict mode, autosave, auto-pause, logging, and startup behavior | config [name] [value...], plus dumpsettings for a diagnostic snapshot |
| Rules | PvP, attack mode, wave timing, manual wave sending, whether waves run, game-over behavior, core capture, and balance multipliers | rules [remove/add] [name] [value...] |
Configuration values can be strings, booleans, or numbers. Exact defaults are release-dependent; do not assume that a value seen in one build is unchanged in another. Check the installed release with help, config, and dumpsettings before publishing a copy-paste setup.
What settings make a good private server for friends?
Start with identity, a deliberate capacity limit, controlled access, protection against chat abuse, and recoverable saves. These are recommendations for a private group, not claims about universal defaults.
Give the server a recognizable identity
- Set
nameto the group’s name or the campaign name. - Use
descto explain the purpose of the server. The documented description limit is 100 characters, so keep it concise. - Set
motdwith the current map, play schedule, or a short conduct note.
A clear identity prevents friends from joining the wrong listing and gives a public-facing server enough context for prospective players.
Limit capacity intentionally
Set playerlimit to the number of people the group actually plans to support instead of leaving an open server uncapped. The command accepts a numeric limit or off to remove the cap. A limit is an access and moderation control; it is not a performance benchmark, and the official documentation does not establish a universal recommended player count.
Use a whitelist for invite-only access
Enable whitelist when only invited players should enter, then manage access with server IDs using whitelist add [ID] and whitelist remove [ID]. IDs are preferable to display names because names can change or collide. Leave the whitelist disabled only when open access is an intentional choice.
Turn on basic abuse controls
Enable antiSpam to reduce repetitive chat abuse and keep strict enabled unless a known compatibility problem requires a different choice. A public or semi-public server also needs an administrator who can respond to reports; an option being enabled does not replace active moderation.
Protect progress
Enable autosave and select an interval that matches the group’s tolerance for lost progress. Keep more than one save slot where practical, and copy important saves or backups outside the running process so a damaged world or host failure does not eliminate every recovery point. Use save, load, saves, and loadautosave to manage and recover worlds.
Decide whether the world should pause
For a casual co-op group, consider autoPause so the world waits when nobody is online. This is useful for a campaign that should not consume time while the group is absent; it is less appropriate for a community that expects an always-running simulation.
What should a public or community server change?
A public server needs a clear identity, bounded capacity, reliable recovery, and a moderation routine rather than simply opening the port.
- Use a descriptive
name, a concisedesc, and an informativemotd. - Set a defined
playerlimitthat the administrators can actually supervise. - Keep
antiSpamandstrictenabled, and enable logging where the release exposes it. - Use a whitelist for a membership-based community; use open access only when that is the intended policy.
- Learn the moderation commands before launch:
kick,ban,unban,pardon,admin, andplayer. - Schedule save checks and maintain backups outside the active server directory or process.
The console also provides status and dumpsettings for diagnostics. Keep a written record of who has administrative authority and which rules are active so a restart or staff handoff does not create uncertainty.
How should I configure co-op, attack, and PvP rules?
Choose gameplay rules as a deliberate preset for the map or event. The Rules layer distinguishes PvP, attack mode, wave timing, manual wave sending, and whether waves run at all; it also exposes game-over behavior, core capture, and balance multipliers.
Small private co-op
Keep the map’s intended rules close to their normal values. Change wave timing or resource multipliers only when the group agrees on the effect. Combine those rules with a whitelist, autosaves, auto-pause, anti-spam, and a player limit matching the invited group.
Attack nights
Decide whether the server should use attack mode, how waves are timed, and whether players or administrators can send waves manually. Record those choices with the event instructions so players know whether an incoming wave is automatic, manually triggered, or disabled.
PvP sessions
Set pvp explicitly and review coreCapture, canGameOver, and any balance multipliers. A PvP preset should state the map, victory condition, wave behavior, and resource adjustments together; otherwise players may interpret a rule change as a server fault.
Use rules to inspect or change the active values, and verify the command’s accepted arguments with help rules on the installed release.
How do I make a server reachable from outside my home?
Internet access requires both host-firewall rules and router forwarding for Mindustry’s documented port 6567 over TCP and UDP. Without forwarding, a home server is normally reachable only from the local network.
- Confirm the server’s configured
portvalue. If you changed it from 6567, the firewall and router must use the new value consistently. - Create inbound Windows firewall rules, or equivalent host-firewall rules, for port 6567 on both TCP and UDP when using the documented default.
- Assign the host machine a stable address on the home network, then forward the same TCP and UDP port on the router to that machine.
- Have an outside player test the connection while you watch
statusand the server console. - If local players can connect but outside players cannot, verify the host firewall, forwarding target, configured port, and whether the internet service uses carrier-grade NAT.
Carrier-grade NAT can prevent inbound connections even when router settings look correct; that is a property of the deployment, not a Mindustry rule. In that case, consider a cloud service or a dedicated server/VM provider instead of exposing a home public IP. A hosted machine trades some hardware and networking control for simpler remote availability and a recurring cost.
Which commands do I need at the console?
Use the following as a quick reference, then run help on your release because command details can change.
| Command | Purpose |
|---|---|
help [command] |
Display available commands or syntax for one command. |
status |
Check the current server status. |
host <mapname> [mode] |
Start a map, optionally specifying its mode. |
config [name] [value...] |
Read or change a persistent server setting. |
rules [remove/add] [name] [value...] |
Inspect or modify gameplay rules. |
playerlimit [off/somenumber] |
Remove the cap or set a concurrent-player limit. |
whitelist [add/remove] [ID] |
Add or remove a player ID from the allow-list. |
shuffle [none/all/custom/builtin] |
Choose how map rotation is shuffled. |
nextmap <mapname> |
Set the next map. |
kick, ban, unban, pardon, admin |
Moderate players and manage administrative status. |
save, load, saves, loadautosave |
Create, list, load, and recover saved worlds. |
dumpsettings |
Print settings for troubleshooting and comparison. |
How do I set up map rotation and automatic startup?
Use shuffle to select a rotation mode—none, all, custom, or builtin—and nextmap <mapname> when the next scenario must be explicit. For a recurring server, place the desired host command in startCommands so a restart returns to the intended map instead of waiting for an administrator to type it.
After changing startup behavior, restart the process once under normal conditions and confirm that the expected map loads. Keep the startup command and the active rule preset together in your administration notes; a map name alone does not tell players whether PvP, attack mode, or wave behavior has been changed.
What should I check when players cannot connect?
Diagnose the failure by location: local clients, outside clients, or everyone. This narrows the problem before you change settings.
Nobody can connect
- Check that the JAR is running and that a map has been started with
host. - Run
statusand confirm the server is listening on the expected port. - Inspect the configured identity, player limit, and whitelist state.
- Use
dumpsettingsto capture the active configuration before making further changes.
Local players connect, but outside players do not
- Verify both TCP and UDP firewall rules on the host.
- Verify router forwarding to the host’s current local address.
- Confirm the forwarded port matches the server’s
portsetting. - Check for carrier-grade NAT or another upstream network that blocks inbound connections.
A player is rejected despite being invited
Check whether the whitelist is enabled and whether the player’s server ID—not merely a display name—was added. If the server is intended to be open, disable the whitelist deliberately rather than leaving access behavior ambiguous.
Progress disappears after a crash or restart
Confirm that autosave is enabled, inspect available entries with saves, and recover with loadautosave or load as appropriate. Keep independent backups and test that the process can read and write its save directory; autosave cannot help if the host cannot persist the file.
How should I choose between a home host and a hosted machine?
A home server gives you direct control over hardware, files, and network policy, but you must maintain port forwarding, firewall rules, uptime, and exposure of your public IP. A hosted machine or virtual server usually simplifies external reachability and keeps the service independent of a home connection, but adds recurring cost and another provider to administer.
| Decision factor | Home-hosted dedicated server | Hosted dedicated server or VM |
|---|---|---|
| Persistence | Depends on your machine, power, and connection staying online | Designed for independent, continuous operation |
| Network setup | Firewall and router forwarding are your responsibility | Provider networking is usually the starting point; you still configure the server |
| Control | Full control of hardware and local files | Control is bounded by the provider’s platform |
| Cost | Uses existing equipment but may add power and maintenance costs | Recurring hosting cost |
| Privacy and exposure | Requires exposing a home connection for remote players | Separates the game service from your home network |
For a few friends who all play locally, the built-in host is simpler than either option. For a persistent private group, choose whichever dedicated environment you can keep updated, backed up, and reachable reliably.
What is documented, and what must I verify on my release?
The official server documentation establishes the two hosting models, the dedicated launch flow, port 6567 over TCP and UDP, the major console commands, and the separation between configuration and rules. It does not establish a universal server-capacity benchmark or a single best performance setting for every machine and map.
Before you publish instructions to your players, run help, inspect config, and capture dumpsettings on the exact release you are using. Treat defaults as release-specific, label any one-time event rule clearly, and keep a copy of the active settings with your map or campaign notes.
Which baseline should most groups use?
For a private group that wants a persistent world, run a dedicated server with a clear name, 100-character-or-less description, informative MOTD, intentional player limit, whitelist by server ID, anti-spam, strict mode, autosaves, external backups, and auto-pause if the world should wait when empty. Use startup commands for the chosen map and keep gameplay rules close to the map’s intended settings until the group agrees on a co-op, attack, or PvP preset.
For a one-evening local session, the built-in LAN or Steam host avoids unnecessary administration. For remote public access, add the documented TCP and UDP forwarding, test the firewall and router path, and consider a hosted machine when home networking or carrier-grade NAT makes inbound access unreliable.
Frequently Asked Questions
Can I move a campaign from a LAN host to a dedicated server?
Use the game’s save and load workflow to preserve the world, then place the save where the dedicated process can access it and verify the result with its save-listing commands. Test the imported world privately before changing the public address or inviting the whole group.
How often should I run autosaves?
There is no universal interval documented for every map, machine, or group. Choose an interval based on how much progress players can recreate, and supplement it with more than one save slot and backups outside the active server process.
Why can a router test still fail even after forwarding port 6567?
The host firewall may still block one protocol, the forwarding rule may target the wrong local address, or the internet provider may place the connection behind carrier-grade NAT. Compare the configured port with the router rule and test from a genuinely external network.
Should a PvP event use the same rules as a co-op campaign?
Usually not. PvP requires an explicit decision about core capture, game-over behavior, waves, and balance multipliers, while co-op generally benefits from leaving the map’s intended rules intact; document the event preset so players know what changed.