To install a mod on a Mindustry dedicated server, run the server once, stop it, place a compatible compiled JAR in <server directory>/config/mods/, restart, and verify it with the mods command. Open TCP and UDP port 6567 for connections, forward that port on your router for Internet players, and keep every player’s Mindustry version aligned with the server. This procedure applies to server plugins and other JVM-based server mods; ordinary asset and content mods may also need to be installed on each player’s client.
What kind of Mindustry mod can a server load?
Mindustry has two different mod categories, and confusing them is the most common cause of a failed installation. A server plugin is a Java program packaged as a compiled JAR. It runs on the dedicated server, can add commands or server-side behavior, and is hidden from clients. A regular content mod is usually a directory (or an archive with the same structure) containing assets and a required mod.hjson file; it can add blocks, units, maps, sprites, sounds, and scripts that players may need locally.
| Type | Where it runs | Typical contents | What joining players may need |
|---|---|---|---|
| Server plugin (JVM mod) | Dedicated server only | Compiled Java JAR; often extends mindustry.mod.Plugin |
Nothing for a server-only command or administration feature |
| Content or asset mod | Client, and sometimes server for hosted maps | mod.hjson, content, maps, scripts, sprites, and sounds |
The release’s required client files when it adds shared content |
Mindustry’s plugin documentation describes plugins as Java mods intended for servers only. Because they are executable Java bytecode, download release JARs from a source you trust, inspect the release notes, and do not place an arbitrary source-code directory in the server’s mods folder.
What do I need before installing a server mod?
- A dedicated Linux or Windows machine, or a managed server account with file access.
- A supported Java installation and permission to run Java processes.
- The Mindustry dedicated-server release, commonly named
server.jarorserver-release.jar. - A separate directory for the server and its configuration files.
- A compiled plugin or server-mod JAR that matches the server’s Mindustry version.
- Firewall access to TCP and UDP port 6567; router port forwarding as well if players connect from outside your local network.
- Backups of the server’s configuration and worlds before introducing third-party code.
The official dedicated-server release is distributed through Mindustry’s release channels. The exact filename can change, so use the name that actually appears in your server directory rather than assuming it is always server-release.jar.
How do I install and launch the dedicated server?
- Prepare the host. Install Java on the machine that will stay online, create a directory such as
mindustry-server, and copy the dedicated-server JAR into it. On a remote Linux host, connect through your terminal; on Windows, open a terminal in the server folder. - Launch once to generate files. Change to the directory containing the JAR and run
java -jar server-release.jar. Substitute the actual filename if it is different. The first run creates the server’s configuration and data directories. - Check the working directory if Java reports a missing file. An error saying that the JAR cannot be accessed usually means the terminal is in a different directory or the filename was typed incorrectly. List the files, change to the folder containing the JAR, and run the command again.
- Leave the console available. The running process is the dedicated server. Use its console for commands such as
help,status,version, andmods.
A dedicated server continues independently of the game client, unlike a local in-game server that ends when the host closes the game. A remote host is useful when you need an always-on public address; a home machine is useful when you want direct control of files and hardware.
How do I stop the server safely before changing mods?
Never overwrite a mod while the server is running. Stop it from the hosting panel’s stop control, or use the server console’s normal shutdown command shown by help. Wait for the process to exit cleanly before replacing files; this reduces the chance of a partially written configuration or a locked JAR.
Back up the server directory, especially its configuration, maps, and world data. If a new plugin prevents startup, you can then remove the new file and restore the previous state without losing the world.
Where exactly do I put a Mindustry server plugin?
- Open the directory in which the dedicated server is actually running.
- Open or create the path
config/mods/beneath that directory. - Copy or upload the compiled plugin JAR into that folder. The resulting path should look like
<server directory>/config/mods/example-plugin.jar. - Keep the JAR itself in the folder; do not leave it inside an extra archive directory, and do not upload only a source repository.
The active directory matters. If you start the server from one folder but copy the JAR into another installation’s config/mods, Mindustry will not see it. A client-only mods folder on your gaming computer is also unrelated to the dedicated server’s folder.
How do I restart and verify that the mod loaded?
- Start the server again with
java -jar server-release.jar(or the actual JAR filename). - At the server console, run
mods. This lists the mods loaded by the server. - Run
mod <name...>with the displayed mod name to inspect its details. - Run
versionto record the server build andstatusto inspect the current server state. - Read startup errors before inviting players. A plugin that is missing a dependency or targets another Mindustry build may be skipped or stop initialization.
Use the name shown by mods rather than the JAR filename when querying a particular mod. If it does not appear, stop the process and recheck the active directory, the file extension, and the plugin’s compatibility notes.
How do I host a map after installing the mod?
From the server console, use host <mapname> [mode]. Replace <mapname> with the map’s name; if you omit the optional mode, Mindustry uses survival. A map supplied by a content mod may require that the map and its associated content are available to the server and, depending on the mod, to clients as well.
Use help whenever you are unsure of a command’s syntax. It displays the commands exposed by the current server build and by any loaded plugins.
What networking settings let other players connect?
Allow both TCP and UDP traffic on port 6567 in the host’s firewall. Players on the same network can use local discovery or the host’s private IP address. Players outside that network need the router to forward TCP and UDP 6567 to the server machine, then connect using the network’s public IP address.
| Player location | Address to provide | Required work |
|---|---|---|
| Same home or office network | Local discovery or the server’s private IP | Allow 6567 through the host firewall |
| Different network | Public IP address | Allow TCP/UDP 6567 in the firewall and forward both protocols on the router |
| Managed host | Address supplied by the host | Use the provider’s firewall and port controls; confirm that Mindustry exposes 6567 |
If local players can join but Internet players cannot, the mod is unlikely to be the cause. Check the host firewall, the router’s destination IP, both protocols, and whether the public IP has changed. Some Internet providers place customers behind carrier-grade NAT, which can prevent inbound forwarding; in that case a reachable managed host or another network arrangement may be necessary.
Do players need to install the same mod on their computers?
Not always. A server-only plugin remains hidden from clients, so a player joining a server that adds only commands or administration behavior does not download it. A mod that adds blocks, units, maps, or other shared content is different: read its release notes and install the compatible client files wherever the author requires them.
Mindustry’s documented client locations are:
| Platform | Client mods directory |
|---|---|
| Linux | ~/.local/share/Mindustry/mods/ |
| Steam | steam/steamapps/common/Mindustry/saves/mods/ |
| Windows | %appdata%/Mindustry/mods/ |
| macOS | ~/Library/Application Support/Mindustry/mods/ |
| Android | /storage/emulated/0/Android/data/io.anuke.mindustry/files/mods |
Those paths are for the game client, not the dedicated server. The server’s JVM plugins belong in its own config/mods directory even when the administrator is playing from the same computer.
How do I keep Mindustry and a plugin compatible?
Every connecting device must run the same Mindustry version; this applies across desktop, mobile, and other platforms. Record the server build with version, then compare it with the version required by the plugin release and with each player’s client version.
- Choose a plugin release explicitly built for the server’s Mindustry version.
- Do not assume that the newest JAR is compatible with an older server.
- After a Mindustry update, expect to update or temporarily remove plugins until their authors publish compatible builds.
- When a content mod has separate server and client files, follow the author’s stated pairing rather than mixing releases.
A source repository is not automatically an installable JVM mod. The server expects a compiled JAR release; building source code requires the mod’s own development instructions and is outside the normal copy-and-restart workflow.
What should I check when a plugin does not load?
The JAR is missing from mods
Stop the server and verify that the file is in the active installation’s config/mods, not a client directory or a different server copy. Check that the filename ends in .jar and that your file manager did not leave it inside a downloaded archive.
The file is source code rather than a release
Download the project’s compiled server JAR release. A folder containing Java source, build files, or documentation cannot be loaded as a plugin simply by copying it into config/mods.
The plugin targets another version
Run version, compare the result with the plugin’s release notes, and install a matching build. If no compatible build exists, remove the plugin and keep the server on the known-good combination.
The server starts but the feature is absent
Run mods and then mod <name...>. Review startup output for dependency or initialization errors, and use help to see whether the plugin added a command with different spelling than expected.
Players cannot connect
First test from the same network. If that works, verify TCP and UDP 6567 in the firewall, router forwarding to the correct private IP, and the public IP supplied to remote players. Confirm every client uses the same Mindustry version before changing plugin files.
The Java command cannot find the server
Change the terminal to the directory containing the actual JAR filename and rerun the command. If the file is named server.jar, use java -jar server.jar instead of copying a command that references server-release.jar.
Should I self-host Mindustry or use managed hosting?
Self-hosting gives you direct control over files, plugins, Java, backups, and updates. Managed hosting shifts much of the operating-system and networking work to a control panel, but you depend on the provider’s supported Mindustry version, file permissions, uptime, and support policy.
| Decision factor | Self-hosted machine | Managed server or VPS |
|---|---|---|
| Files and plugins | Full access to the server directory and JARs | Usually an upload panel or restricted file access |
| Java and updates | You install Java and maintain Mindustry and plugins | Provider may supply the runtime and update controls; verify what is included |
| Firewall and forwarding | You configure the host firewall and, for home hosting, the router | Provider normally exposes a public endpoint, but its firewall rules still require checking |
| Uptime and remote access | Depends on your electricity, Internet connection, and machine | Designed for remote access; actual uptime depends on the provider |
| Hardware cost | Uses an existing PC or a small always-on computer; no player-capacity guarantee is established by the available documentation | Recurring hosting charge; pricing and performance vary by provider |
| Support | You diagnose Java, permissions, mods, and networking | Support may cover the panel and host, not every third-party plugin |
A small single-board computer such as a Raspberry Pi can run a dedicated server when the correct Java version is installed. The official FAQ does not publish a guaranteed player count, CPU requirement, memory requirement, or mod-load benchmark, so choose hardware based on your own world, player group, and testing rather than a promised capacity.
For managed hosting, the normal workflow remains the same: stop the server in the panel, upload the JAR to config/mods, start the server, and verify with mods. Confirm the provider supports your Mindustry build, allows custom JAR uploads, exposes TCP and UDP 6567, and lets you retrieve logs and backups before committing to it.
How do I update or remove a server mod without breaking the world?
- Announce a maintenance window and stop the server cleanly.
- Back up the entire server directory or at least the configuration, worlds, and current mod JARs.
- Move the old JAR out of
config/modsrather than deleting it immediately, so rollback is easy. - Copy in the new compatible release and start the server.
- Run
version,mods, andstatus; test a private map before reopening the server. - If startup fails or world content is missing, stop the process, restore the previous JAR and backup, and repeat the change with a version known to match.
Removing a plugin can also remove commands or mechanics that players expect. If a content mod created blocks or units in a saved world, check its documentation before loading that world without the mod; a backup is the safest recovery path.
What is the safest repeatable installation checklist?
- Record the server’s Mindustry version with
version. - Confirm the download is a compiled JAR release and is intended for that version.
- Back up the server directory.
- Stop the running process before touching files.
- Place the JAR in the active server’s
config/mods. - Restart and confirm it appears in
mods. - Inspect the plugin with
mod <name...>and check startup output. - Host a test map with
host <mapname> [mode]. - Verify firewall and router rules for TCP and UDP 6567.
- Give players the correct address and require a matching Mindustry version.
Following that order separates installation problems from networking problems: first prove the server sees the JAR, then prove it can host a map, and only afterward troubleshoot remote connections.
Frequently Asked Questions
Can I install a Mindustry plugin while the server is running?
Do not do so. Stop the process first, copy or replace the JAR, and restart; a running Java process may keep the old file open and will not reliably discover a newly added plugin.
Why does a server plugin not appear in the in-game mod list?
Server-only plugins are intentionally hidden from clients. Check the dedicated server console with mods; the absence of a client-side entry is normal for a plugin that adds only server behavior.
What ports does a Mindustry server use by default?
The documented default is port 6567 over both TCP and UDP. Changing the port requires matching firewall, router, and connection settings, so troubleshoot the default first unless your server configuration deliberately uses another value.
Can different platforms join the same Mindustry server?
Cross-platform play is supported when the devices run the same Mindustry version. A desktop, mobile, or other client on a different build can fail to connect even when the server’s port and mod files are correct.
Do I need a powerful computer to host a small Mindustry server?
The official material confirms that a correctly configured Raspberry Pi can run a dedicated server, but it does not provide player-count, CPU, memory, or mod benchmarks. Test your actual map and plugin set instead of relying on a universal hardware limit.