Running your own Mindustry servers right on your mobile device is a great opportunity to play with friends without having to rent paid hosting or keep your computer running. The Android mobile platform provides plenty of flexibility for running game servers, although the setup process requires attention to detail and an understanding of network protocols. Unlike the PC version, it has its own nuances related to memory management and operating system limitations.
Creating a dedicated server on your phone allows you to control the rules of the game, install mods and administer the map yourself. However, it is worth considering that Android is not intended to operate 24/7 as a full-fledged data center, so the stability of the connection will depend on the battery charge and the quality of your Wi-Fi network. In this article, we will analyze in detail all the stages: from choosing the right version of the game to setting up port forwarding to connect players from anywhere in the world.
Ready to turn your smartphone into a powerful gaming hub? Below are step-by-step guide that will help you avoid common mistakes and start the server as quickly as possible. We will look at both standard methods through the app itself, as well as more advanced methods using third-party terminal emulators for complete control over the process.
Selecting the game version and preparing the device
The first and most critical step is to select the correct version of the application Mindustry. To create a server, it is strongly recommended to use the official version from the Google Play Store or a verified APK file of the latest stable build. Experimental versions or builds from suspicious forums may contain errors in the network code, which will lead to constant disconnections for your guests.
Make sure that your device has enough RAM. Server part games consume resources differently than the client: it needs to process the logic of all units and blocks at the same time. If you have less than 4 GB of RAM, it is recommended to close all background applications before starting. This will free up processor resources for processing network packets.
โ ๏ธ Attention: Using modified clients (pirated versions) for hosting often leads to protocol incompatibility. Players with a licensed version simply will not be able to connect to your server due to desynchronization of block IDs.
Also check the available space in the internal storage. The server will generate logs and save maps, which can take up a significant amount of space over time. It is recommended to have at least 500 MB of free space for comfortable work without the risk of disk overflow during a gaming session.
Before installation, update the Wi-Fi module drivers in the system settings, if such an option is available by the manufacturer of your smartphone - this will improve ping stability.
Configuring server parameters in the application
After To install the game, go to the main menu and select mode HostiGra or Server, depending on the localization of the interface. In the world creation settings, you will need to set a server name that will be visible to other players. Use clear names, avoiding special characters that may not display correctly on devices with other language settings.
The key point is choosing the network type. To play with friends via the Internet, you must select the option Public server. The local area network (LAN) will only be visible to devices connected to the same Wi-Fi router, limiting the ability to play together. In the difficulty and rules settings, be sure to disable cheats if you want honest survival, or configure starting resources to suit your scenario.
- ๐ฎ Server port: By default, port 6567 is used, changing it is required only in case of conflicts.
- ๐ Password: Set complex password if you donโt want random players ruining your map by griefing.
- ๐ Description: Briefly state the rules (for example, โNo PvPโ or โVanilla onlyโ) to weed out inappropriate audiences.
Important Correctly configure the server's visibility in the list. If you only want to play with a small circle of friends, it is better not to publish the server in the general list, but to give them the IP address directly. This will reduce the load on the device and reduce the risk of attacks from unwanted visitors.
Port forwarding and network configuration
The most difficult part of setting up is providing external access to your device. By default, routers block incoming connections for security reasons. In order for friends to connect to your Androidserver, you need to perform the Port Forwarding procedure in the settings of your router.
Go to the router control panel through a browser, usually this is the address 192.168.0.1 or 192.168.1.1. Find the section responsible for virtual servers or port forwarding. You need to create a new rule by specifying the internal IP address of your phone (which can be found in the Wi-Fi settings on the device itself) and external port 6567 (TCP/UDP protocol).
| Parameter | Value | Description |
|---|---|---|
| Internal IP | 192.168.x.x | Address of your smartphone on the local network |
| External port | 6567 | Mindustry standard port |
| Protocol | TCP/UDP | Both protocols must be open |
| Status | Enabled | Rule activation |
After saving the router settings, you need to find out your external IP address. This can be done through any service in the browser by entering the request โmy ipโ. It is this address (along with the port, for example 85.21.10.5:6567) that you must tell your friends to connect. Remember that most providers have a dynamic IP address and can change after rebooting the router.
What to do if the provider uses CGNAT?
If your external IP starts with 10.x.x.x or 100.x.x.x, then you are behind double NAT. In this case, port forwarding is impossible without contacting the provider for a dedicated address or using tunnels.
Using terminal emulators for advanced
For those who want to gain more control or run the server in the background without an open game window, an excellent solution is to use a terminal emulator such as Termux. This method allows you to run the game server as a normal Linux process, which is often more stable and battery-efficient.
You will need to install Termux from F-Droid (the Google Play version is outdated) and set up a Java environment. After installing the packages, you need to download the Mindustry server jar file and run it with the command. This makes it possible to use scripts to automatically restart the server in case of a crash.
pkg install openjdk-17
java -jar mindustry-server.jar
This approach also allows you to connect plugins and mods that may not be available in the standard mobile interface. You will be able to edit configuration files directly through a text editor inside the terminal, adjusting subtle parameters of balance and behavior of bots.
โ ๏ธ Attention: When working through Termux, make sure that the application has permission to run in the background, otherwise the Android system will kill the server process a few minutes after the screen turns off.
โ๏ธ Preparing Termux
Installation mods and plugins
One of the main advantages of your own server is the ability to install modifications. On Android, this is done through the built-in mod browser in the game menu or by manually adding files to the folder mods. However, when adding manually, it is critical that all players have the same mods installed in the same version, otherwise a desync error will occur.
Plugins expand the functionality of the server by adding commands for administrators, a ban system, or automatic saving of maps. Some popular plugins, such as AntiCheat or ChatFilter, significantly improve the quality of the game by preventing spam and the use of prohibited techniques.
- ๐ฆ Mod Manager: Use the built-in download to automatically sync versions.
- โ๏ธ Configuration: File
server.propertiesallows you to disable certain mods for clients, leaving them only on the server. - ๐ Updates: Regularly check the compatibility of mods after updating the game itself Mindustry.
When installing heavy mods that add new types of blocks or units, server performance on the phone may decrease. Monitor the TPS (ticks per second) indicator in the server settings. If it drops below 60, try disabling some mods or reducing the map size.
All players are required to have an identical set of mods with the server. Even a difference in one letter of the mod version will make it impossible to connect.
Optimization and solving performance problems
Running a server on a mobile device creates a serious load on the processor and cooling system. To avoid throttling (a slowdown in processor speed due to overheating), remove the case from your phone and place it on a cool surface. Ideally, you can use a small cooler for smartphones if you plan on long gaming sessions.
In the Android developer settings, you can limit background processes to allocate maximum resources for the game. Also disable interface animations and account synchronization for the duration of hosting. This will free up RAM and reduce the load on the network.
If you notice lags or freezes, try reducing the number of active units in the server settings or choosing a map with a smaller area. Cards with a huge number of conveyor belts and complex circuits require more computing power to calculate the logic of resource transport.
โ ๏ธ Attention: Terms of use of mobile networks and operator tariffs may change. Make sure your data plan allows for large data transfers, as Mindustry's server may consume more bandwidth than regular web surfing. Always check the conditions in your operator's personal account.
Use the "Do Not Disturb" mode on your phone while playing so that incoming calls do not interrupt the network connection and cause lags for all players.
Frequently asked questions (FAQ)
Can iOS players connect to a server on Android?
Yes, the Mindustry version of the game is cross-platform. Players with an iPhone or iPad can easily connect to a server running on Android, provided that the game versions and the set of mods match.
Why is the server not visible in the list, although the ports are forwarded?
Often the problem lies in the Windows firewall (if the scan is done from a PC) or in the router settings, where you need to explicitly allow the passage of UDP packets. Also make sure that on the phone itself, in the application settings, access to the local network is allowed.
How to save map progress when the server is restarted?
The server automatically saves the state of the world to a file maps. The main thing is not to delete save files manually and to correctly stop the server through the menu so that the data is written to the disk before shutting down.
Is it possible to run several servers on one phone?
Technically this is possible through terminal emulators, changing the ports for each instance, but the performance of one smartphone is unlikely to support two active servers with players simultaneously without critical ones lags.