VGKAMI
Advertise Get listed

Game Guides

How to Fix Mindustry Server Lag and Connection Problems

Published 12 min read

Mindustry problems fall into two different categories. Connection failures stop a player from finding or joining a server: the room is absent, direct join hangs on “Connecting,” or the client says the host cannot be reached. Simulation lag happens after joining: everyone sees slow updates, delayed building, low server FPS, or a map overloaded with units and structures. The remedies are different, so identify the symptom first.

For connection failures, make sure the server is actually hosting a map, use the correct local or public address, allow and forward port 6567 for both TCP and UDP, and align game versions and mods. For lag, inspect the live status output, then reduce player, map, entity, and plugin load while checking Java heap use. No single player count, bandwidth figure, or FPS threshold applies to every map and mod.

How can I tell whether Mindustry is lagging or failing to connect?

Ask what happens after the player reaches the server. If nobody can join, the server is missing from the list, or one client remains on “Connecting,” investigate discovery, routing, firewalls, versions, and mods. If players enter but game ticks, building, waves, or movement are delayed for everyone, investigate server workload and the host machine.

  • Connection or discovery failure: no room appears, direct IP join fails, or the client cannot reach the host.
  • Simulation lag: the room is reachable, but updates are slow for connected players.
  • Client-only symptoms: one player has a poor route, an isolated Wi-Fi connection, or a mismatched installation while others play normally.

Test with one unmodded client and a simple map before changing several settings. That gives you a clean baseline and prevents a routing problem from being confused with an overloaded simulation.

How do I fix a Mindustry server that players cannot find or join?

Work through the checks in this order. Each step eliminates a different failure point, from the server process to the player’s network.

1. Confirm that the server process is hosting a map

Starting the server JAR does not by itself create a joinable game. In the server console, run host <mapname> [mode], replacing the bracketed mode with the mode you intend to use. Verify that the console accepts the command and reports an active map before testing from another device.

If the process exits, reports an exception, or refuses to host, fix that startup error first. A firewall rule cannot make an inactive process appear in the server browser.

2. Use the address that matches the player’s network

Players on the same home network should try the host computer’s current local IP address. Players outside that network need the home connection’s public address, together with router forwarding to the host machine. Sending an external player a private address such as a typical 192.168.x.x address will not work across the internet.

Do not publish a public IP in an open chat or forum. Give it only to the people who need to connect, and review your router’s exposure after the session.

3. Allow Mindustry through the host firewall

Allow port 6567 on both TCP and UDP in the operating system firewall. Opening only one protocol can produce confusing partial behavior: a server may appear reachable from one test while joins or gameplay traffic still fail. Create an inbound rule for the server process or port, then retry from a device that is not the host.

4. Forward port 6567 on a home router

For a home server, create a port-forward rule that maps external port 6567 to port 6567 on the host’s current local IP. Select both TCP and UDP, and reserve the host’s local address in the router’s DHCP settings if possible. Without a stable internal address, a reboot can send the forward to the wrong computer.

For a virtual private server, there are two separate firewalls: the provider’s security group and the operating system firewall. Permit TCP and UDP 6567 in both places. A rule in only one layer still blocks incoming players.

5. Test direct join when the browser is empty

Use Mindustry’s direct-connect option with the server IP and port. A direct join can succeed when LAN discovery is blocked, and it distinguishes a browser or broadcast problem from a routing failure. Guest and public Wi-Fi commonly isolate clients from one another; move both devices to a network that permits local traffic or use a properly reachable public endpoint.

6. Resolve “port already in use” errors

On a Unix-like host, inspect the owner of port 6567 with:

lsof -i :6567

Use the equivalent socket-listing tool on your operating system if lsof is unavailable. Identify the process and stop it only when you have confirmed that it is a stale Mindustry instance or another service you intentionally want to replace. Do not kill an unknown process merely because it owns the port.

7. Make server and clients use the same version

Mindustry is cross-platform when the devices run the same version. Update the server JAR and every client together, then restart the server before testing again. A client that is one release behind can fail during the handshake even though the address and port are correct.

8. Remove incompatible mods and plugins temporarily

Mods and plugins must match the server’s game version and, where applicable, each other. Remove nonessential additions from both sides, restart with a clean configuration, and test a join. Reinstall compatible versions one at a time so the first failing addition is identifiable. A plugin can also prevent startup or create performance problems after a successful join.

How do I fix Mindustry simulation lag after everyone has joined?

Use the server’s live measurements before changing hardware or networking. At the server console, run status. The command reports the current map, wave, unit and enemy counts, FPS, Java heap use, and connected players.

Read the status output as a workload snapshot

Compare the output while the server is quiet with the moment lag appears. A drop in server FPS alongside rapidly growing unit, enemy, or building counts points to simulation load. High heap use that keeps climbing suggests memory pressure or a plugin/mod issue. Because maps and content differ, treat these readings as a baseline for your server rather than applying a universal “lag number.”

Reduce load in a controlled order

  1. Lower the player limit. Fewer active players reduce simultaneous input, construction, pathfinding, and enemy activity.
  2. Test a smaller map. Keep the same clients and mods, but move to a less demanding map to determine whether map size or design is the trigger.
  3. Reduce very large unit and building populations. Clear abandoned factories, excessive conveyors, and accumulated units where the map allows it.
  4. Disable suspect plugins and mods. Re-test without nonessential additions, then restore them individually.

Change one variable at a time and record the result. Changing the map, player limit, and every plugin simultaneously may make the lag disappear, but it will not reveal which limit you reached.

Inspect Java and memory conditions

The heap figure in status shows how much Java memory the running server is using. Use a current, supported server build and verify that the Java runtime meets that build’s requirement; the current repository build instructions require Java 17 or newer. If heap use remains high after reducing map activity, test without plugins and review startup settings before assigning more memory.

More heap does not automatically create more simulation capacity. A plugin that retains objects or a map that continually creates entities can consume any allowance you provide.

Review settings with config

Run config to inspect the port and server settings, including player limit, snapshot interval, debug output, and autosave. Adjust one setting, restart if required, and observe the next status sample. Keep a written record so you can revert a change that increases lag or produces unexpected saves.

Update before tuning around an old bug

Recent official releases include server snapshot-serialization improvements and fixes for high pathfinder memory use, multiplayer disconnects, and crashes. Update the server and clients as a matched set before spending time on workarounds. Retest the same map and mod list after updating so you can separate a fixed defect from a workload limit.

Remove competing workloads from the host

If the host computer is also running the game, close browsers, recording software, downloads, and other heavy applications for a controlled test. This is an isolation step, not a published hardware threshold: official sources do not provide one CPU, RAM, bandwidth, or FPS specification that guarantees smooth play on every map.

What should I check when players are stuck on “Connecting”?

A persistent “Connecting” state usually means the client can resolve an address but cannot complete the network exchange. Start with the server’s active map and matching versions, then check both firewall protocols and the route used by that player.

  • Have the host confirm that host <mapname> [mode] succeeded and that the process is still running.
  • Have the player try direct join with the correct local or public address rather than relying on discovery.
  • Confirm TCP and UDP 6567 at the host firewall, router, and—on a VPS—provider security group.
  • Test from a different network if the player is on guest or public Wi-Fi.
  • Temporarily remove nonessential mods and plugins, then retry with matching game versions.

If every external player fails while a local player succeeds, concentrate on router forwarding, the public address, and upstream firewall rules. If only one client fails, compare that installation’s version, mods, and network.

Why can a friend not see my Mindustry server even when it is running?

Server discovery is not the same as reachability. Broadcast-based discovery can be blocked by Wi-Fi isolation, guest-network policies, or network boundaries even when the server is healthy.

Ask the friend to use direct join with the correct address and port. A local-network player should use the host’s local IP; an internet player should use the public address after forwarding 6567 to the host. If direct join works, the server is reachable and the remaining issue is discovery or the network’s broadcast policy.

If direct join fails too, verify that the public address has not changed, the forwarding rule still points to the host’s current local IP, and both firewall layers allow TCP and UDP. Recheck after the router or host restarts.

Should I host on LAN, run a dedicated server, or use a VPS?

LAN or Steam hosting is the simplest choice for a few players and uses the host device’s resources. A dedicated server runs separately, can remain online, and is better suited to a larger or regular group. A VPS moves the process away from the home router and upload connection, but adds monthly cost and cloud administration.

Option Best fit Strengths Limitations to check
LAN or Steam host Short sessions with a few people on the same network Fast to start; no separate machine or hosting bill Host device must stay online and shares CPU, memory, and network resources with the game and other applications; discovery can be blocked by Wi-Fi isolation
Self-hosted dedicated server Regular group play with administrative control Runs independently of a player’s game client; supports server commands, mods, and persistent uptime when the machine remains on You manage Java, updates, OS firewall, router forwarding, backups, and the host’s upload quality
VPS Players in different locations who need an always-on endpoint Separate CPU and memory; no home-router dependency; provider and OS firewall rules can be managed remotely Recurring cost; latency depends on region; you must configure cloud security rules, the OS, updates, backups, and any bandwidth policy

Compare options using expected player count, map and entity load, host CPU and memory, upload quality, latency to the group, TCP/UDP firewall access, uptime, administrative access, mod support, and recurring cost. There is no authoritative universal capacity number; the status output on your actual map is the useful measure.

How do I set up a reliable dedicated server from scratch?

  1. Install a supported Java runtime. Use Java 17 or newer for the current build requirements, then verify the runtime from the command line.
  2. Download and start the server JAR. Keep the console visible during the first launch so startup errors are not missed.
  3. Host a map. Enter host <mapname> [mode] and confirm that the map is active.
  4. Inspect baseline health. Run status and note FPS, heap use, entities, and connected players while the server is idle.
  5. Configure deliberately. Use config to review the port, player limit, snapshot interval, debug setting, and autosave. Change only what you understand.
  6. Open the network path. Permit TCP and UDP 6567 in the operating system firewall. On a home connection, forward that port to the host’s reserved local IP; on a VPS, add the rule to both the provider security group and the OS firewall.
  7. Test locally, then remotely. Join from the host or LAN first, then use a player on another network. This staged test identifies whether a failure begins at the server or at the internet boundary.
  8. Add content gradually. Introduce plugins and mods one at a time, checking joins and status after each addition.

What do common Mindustry server errors mean?

Symptom Likely area Next action
Server does not appear in the list Discovery, network isolation, inactive map, or wrong address Confirm the map is hosted, try direct join, and test from a network that permits LAN traffic
Direct join cannot reach host Address, router forwarding, or firewall Use the local IP on LAN or public IP remotely; allow and forward TCP/UDP 6567
“Port already in use” Another process owns 6567 Run lsof -i :6567 or the platform equivalent and stop only a confirmed stale process
Join fails after an update Server/client version mismatch or incompatible mod Update both sides together and test without nonessential mods
Everyone experiences slow ticks after joining Map, entity, player, plugin, or host workload Read status, then reduce load in the documented order
Only one player has trouble That client’s version, mods, or network Compare installations and test the player from another network

How can I prevent the problem from returning?

  • Reserve the dedicated host’s local IP so router forwarding does not break after a reboot.
  • Keep the server JAR and clients on the same release, and schedule updates before a group session.
  • Maintain a short inventory of installed mods and plugins with their compatible versions.
  • Record normal idle and busy status readings for the maps your group uses.
  • Change one configuration value at a time and retain a known-good copy of the configuration.
  • Keep the host on a wired connection when possible; this improves link stability but cannot cure an overloaded simulation.
  • For a VPS, document provider firewall rules, OS firewall rules, backups, and the server’s region so recovery does not depend on memory.

These checks separate reachability from simulation capacity. Opening a port solves a routing block; it does not create additional CPU time for an overloaded map.

Frequently Asked Questions

Does forwarding port 6567 make a laggy server run faster?

No. Forwarding controls whether outside players can reach the process; it does not increase simulation FPS or Java memory. Use the status command and reduce map or entity load when the server is reachable but slow.

Can players on different platforms join the same Mindustry server?

Yes, Mindustry is cross-platform when all devices run the same game version. A platform difference is less important than a release mismatch or incompatible mod set.

What should I do before opening my server to the internet?

Confirm the map is hosted, test a local join, then verify TCP and UDP 6567 in the host firewall and router or VPS security group. Share the public address only with intended players and remove the forwarding rule when you no longer need the server exposed.

Why does a server work on home Wi-Fi but not on hotel or guest Wi-Fi?

Guest and public networks often isolate clients or block local traffic, preventing discovery and sometimes direct connections. Test with direct IP on a permitted network or have the player switch to a connection that allows the required traffic.