With the right configuration, you can turn your Factorio game server into exactly the kind of server you envision for your factory: with a custom name, password, listing in the public server list, a suitable map preset, and Space Age if you want. In this guide, we’ll show you which settings are available, where to find them in ZapX, and which files your server rewrites every time it starts.
Factorio reads its server settings from the server-settings.json file in the config folder. You don’t need to edit this file manually: you can find the most important values in ZapX under the Configuration tab, in Startup parameters.
Every time it starts, your server rewrites the entire server-settings.json file using the values from the startup parameters. Any changes you make directly to the file will be lost the next time the server restarts.
Always change the server name, password, player limit, autosave, and visibility in the Startup Parameters, not in server-settings.json. Your server overwrites this file every time it starts.
In contrast, these files are persistent because your server creates them only once and then leaves them alone: the admin list, ban list, and whitelist in the config folder, as well as the mod list in the mods folder. You can find all these folders under the Files tab.
After you save your changes, ZapX will offer to restart the server. Your changes will only take effect after the restart.
| Startup parameter | Description |
|---|---|
| Server name | Your server’s name in the server list. Default: ZapX Factorio Server |
| Server description | A short description that players see in the server list |
| Server password | Password required to join. Leave blank for an open server |
| Max. players | How many players can play on your server at the same time, from 1 to 250. Default: 10 |
| Visible in the official server list | Lists your server in the public Factorio server list. Requires a factorio.com account; see below. Default: off |
| factorio.com username | The username for your factorio.com account, required for the public server list |
| factorio.com token | The token for your factorio.com account, required for the public server list |
| factorio.com password | Alternative to the token: your server exchanges the password for a token when it starts |
| Allow console commands | Who can use console commands in the game: admins-only (admins only, default), true (everyone), or false (nobody) |
| Autosave interval | Time between automatic saves in minutes, from 1 to 1440. Default: 10 |
| Number of autosaves | How many automatic save files are rotated before the oldest is overwritten, from 1 to 100. Default: 5 |
| Map preset | Preset for a new map, such as rich-resources or death-world. Leave blank to use the default settings |
| Enable Space Age DLC | Enables Space Age for a newly created world. Default: off |
| Enable whitelist | Only allows players on the whitelist to join your server. Default: off |
| Sync mods with the save file | Activates the exact mods used when your save file was created before each server start. Default: off |
| RCON Password | Password for the remote console (RCON). ZapX generates one automatically during setup |
You can change the RCON Password, but you can’t leave it blank. See RCON to learn how to connect to your server via RCON.
To make your server appear in the public Factorio server list, enable Visible in the official server list. Factorio requires a factorio.com account for this. You’ll also need to enter:
- Your factorio.com account name under factorio.com username.
- Your token under factorio.com token. You can find it in your profile on factorio.com.
- Save your changes and restart your server.
You can also enter your factorio.com password instead of a token. Your server uses it to sign in to factorio.com when it starts, retrieve a token, and does not write the password to any file. If a token is entered, your server always uses the token.
We recommend using a token. That way, you don’t need to enter your factorio.com password at all. The Factorio Wiki also recommends using a token instead of a password.
If the username or token/password is missing, or authentication fails, your server will still start, but it won’t appear in the public list. Your players can connect directly using the IP address and port, as described in Connect to the server. This also works when public visibility is turned off.
Your server always starts the save file world.zip in the saves folder. If this file doesn’t exist when the server starts, it creates a new world. Two startup parameters only take effect at this point:
- Map preset: Determines how the new map is generated. Factorio includes these presets:
default,rich-resources,marathon,death-world,death-world-marathon,rail-world,ribbon-world,lakes, andisland. Enter the name exactly as shown. Leave it blank to use the default map. - Enable Space Age DLC: Enables Space Age content for the new world. Technically, this activates the
space-age,quality, andelevated-railsmods in your server’smod-list.jsonfile.
These settings no longer have any effect on an existing world. Factorio saves these choices to the save file when the world is created.
- Back up your current save file, for example, using the Savegames tab. See Manage savegames.
- Stop your server.
- Set the desired Map preset and Enable Space Age DLC options in the Startup Parameters, then save.
- In the Files tab, rename the
world.zipfile in thesavesfolder, for example, toworld-old.zip. - Start your server. It will now create a new
world.zipwith your settings.
Without world.zip, your factory will start from scratch. Rename the old file instead of deleting it so you can return to it at any time.
If you want to play a custom save, it must be in the saves folder and named world.zip. See Manage savegames to learn how to upload and download save files.
Your server uses three files in the config folder to manage permissions. It creates them empty on the first start and does not overwrite them afterward:
| File | Contents |
|---|---|
server-adminlist.json | Player names with admin privileges |
server-banlist.json | Banned players |
server-whitelist.json | Players who can join when the whitelist is enabled |
Add admins to server-adminlist.json as a list of factorio.com usernames, for example:
["YourName", "Friend"]
You can also grant admin privileges while the game is running by entering /promote <player> in the Console tab. Find an overview of useful admin commands in Become an admin.
Your server checks the whitelist only when Enable whitelist is turned on. Add players using /whitelist add <player>. See Whitelist for all the related commands.
Use Allow console commands to choose who can use commands in the game. The default setting, admins-only, is the right choice for most servers.
According to the Factorio Wiki, any Lua command such as /c permanently disables achievements for that save file. Setting Allow console commands to true lets any player do this.
Mods are stored as .zip files in the mods folder. The mods/mod-list.json file specifies which ones are active. For an existing world, your server leaves this file as it is. See Install mods to learn how to find and upload mods.
If you enable Sync mods with the save file, your server activates the exact mods used when your world.zip was saved before every start. This is useful, for example, if you upload a save file that uses mods from your PC. However, syncing does not download any mods: all required mods must already be in the mods folder.
Some values in server-settings.json aren’t available as startup parameters. Your server sets them each time it starts:
- Automatic pause: The game pauses when no players are connected. This means your factory only runs while someone is online. Only admins can pause the game.
- AFK kick: Off; inactive players are not kicked from the server.
- Account verification: Only players with a valid factorio.com account can join.
- LAN visibility: On, with the server tag
zapx.
You can’t change these values permanently, even by editing the file, because your server sets them again the next time it starts.
Your Factorio server is now set up just the way you want it. See Become an admin to learn how to give yourself admin privileges. If something isn’t working as expected, see our guide to Common issues. If you have any other questions, our support team is available every day! 🙂
