Skip to content

Factorio: Server Configuration

Learn how to configure your Factorio game server’s name, password, public listing, map preset, Space Age, and whitelist.

26 November 20266 min read5 Views0 helpful

Don't have your own server yet? Host your Factorio server with ZAP-Hosting from €4.49 / month.Or try 3 days from €0.81

Introduction

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.

How the configuration works

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.

Important

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 parameters at a glance

Startup parameterDescription
Server nameYour server’s name in the server list. Default: ZapX Factorio Server
Server descriptionA short description that players see in the server list
Server passwordPassword required to join. Leave blank for an open server
Max. playersHow many players can play on your server at the same time, from 1 to 250. Default: 10
Visible in the official server listLists your server in the public Factorio server list. Requires a factorio.com account; see below. Default: off
factorio.com usernameThe username for your factorio.com account, required for the public server list
factorio.com tokenThe token for your factorio.com account, required for the public server list
factorio.com passwordAlternative to the token: your server exchanges the password for a token when it starts
Allow console commandsWho can use console commands in the game: admins-only (admins only, default), true (everyone), or false (nobody)
Autosave intervalTime between automatic saves in minutes, from 1 to 1440. Default: 10
Number of autosavesHow many automatic save files are rotated before the oldest is overwritten, from 1 to 100. Default: 5
Map presetPreset for a new map, such as rich-resources or death-world. Leave blank to use the default settings
Enable Space Age DLCEnables Space Age for a newly created world. Default: off
Enable whitelistOnly allows players on the whitelist to join your server. Default: off
Sync mods with the save fileActivates the exact mods used when your save file was created before each server start. Default: off
RCON PasswordPassword for the remote console (RCON). ZapX generates one automatically during setup
Info

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.

Public server list and factorio.com account

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:

  1. Your factorio.com account name under factorio.com username.
  2. Your token under factorio.com token. You can find it in your profile on factorio.com.
  3. 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.

Tip

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.

New world, map preset, and Space Age

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, and island. 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, and elevated-rails mods in your server’s mod-list.json file.

These settings no longer have any effect on an existing world. Factorio saves these choices to the save file when the world is created.

Create a new world with different settings

  1. Back up your current save file, for example, using the Savegames tab. See Manage savegames.
  2. Stop your server.
  3. Set the desired Map preset and Enable Space Age DLC options in the Startup Parameters, then save.
  4. In the Files tab, rename the world.zip file in the saves folder, for example, to world-old.zip.
  5. Start your server. It will now create a new world.zip with your settings.
Warning

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.

Admins, whitelist, and console commands

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:

FileContents
server-adminlist.jsonPlayer names with admin privileges
server-banlist.jsonBanned players
server-whitelist.jsonPlayers who can join when the whitelist is enabled

Add admins to server-adminlist.json as a list of factorio.com usernames, for example:

Code
["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.

Info

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.

Sync mods with the save file

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.

Additional settings in server-settings.json

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.

Conclusion

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! 🙂

Free tools

Factorio Tools

View all

FAQ

Frequently asked questions

Your Factorio server rewrites server-settings.json every time it starts, using the values from the startup parameters. Always change the server name, password, player limit, autosave, and visibility under Startup Parameters in the Configuration tab.
In addition to enabling “Visible in official server list,” you need a factorio.com account. Enter your factorio.com username and token (or password) in the startup parameters, then restart your server. If the details are missing or authentication fails, your server can only be reached directly via its IP address and port.
The map preset and Space Age only apply when your server creates a new world—that is, when there is no world.zip file in the saves folder. Back up your save, rename world.zip, and restart the server to create a new world with your settings.

Feedback

Was this article helpful?

Your feedback helps us prioritize and improve content.

0 of 0 people found this article helpful.

Personal support

Need more help than the guide provides?

Our ZAP-Hosting support team knows your product — briefly describe your issue and we'll help you personally.

Zappy knows this guide and answers you right in the chat.