> Intel // field guide_
How to Set Up a Factorio Dedicated Server for Multiplayer
So you want to build a megafactory with your friends, but playing on someone's PC only while they're online isn't cutting it anymore? A Factorio dedicated server is what you need. Whether it's a casual playthrough or a Space Age run, a dedicated server keeps your world available without depending on anyone's gaming PC.
This guide walks you through downloading the headless server, creating a save, configuring the server, adding mods, managing players and fixing common problems.
Why Run a Dedicated Factorio Server?
- Always available: players can join whenever the server is running, without waiting for a host
- Separate from anyone's game: no one's PC has to run both the game and the server
- Mod management in one place: the server defines the mod list everyone uses
- Control: server settings, admins, whitelist, autosaves and auto-pause behavior
- Easier for growing groups: players come and go without ending the session
What You'll Need Before Starting
- A Linux or Windows machine to run the server (or a rented one)
- Factorio's server files (the headless package on Linux, or your normal game install on Windows)
- Basic command-line knowledge
- UDP port 34197 open and forwarded (Factorio's default game port)
- A factorio.com account if you want the server publicly listed
- Optional: your mod list
Step 1: Download the Factorio Server
On Linux
Factorio provides a free headless server package for Linux. It has no graphics and only runs the game simulation. Download it from the Factorio download page, or directly:
cd /opt
wget -O factorio-headless.tar.xz https://factorio.com/get-download/stable/headless/linux64
tar -xJf factorio-headless.tar.xz
cd /opt/factorio
This extracts to a factorio folder containing bin/x64/factorio and a data folder with example config files.
On Windows
There's no separate Windows headless package, but any copy of the game can run as a server. Use your installed factorio.exe (for Steam, in steamapps\common\Factorio\bin\x64) with the server command-line options shown below.
Step 2: Create or Prepare Your Map
You need a save file to start the server. Create a new one or use an existing save.
Creating a New Map
./bin/x64/factorio --create ./saves/my-save.zip
To customize map generation, copy the example files from the data folder and edit them:
cp data/map-gen-settings.example.json map-gen-settings.json
cp data/map-settings.example.json map-settings.json
map-gen-settings.json controls terrain, water, resource frequency, size and richness, cliffs, starting area and enemy bases. map-settings.json controls things like pollution, enemy evolution and enemy expansion. Then create the save with them:
./bin/x64/factorio --create ./saves/my-save.zip \
--map-gen-settings map-gen-settings.json \
--map-settings map-settings.json
You can also create a map in the normal game, save it, and copy that save to the server.
Using an Existing Save File
Copy your save into the server's saves folder:
cp /path/to/your/save.zip /opt/factorio/saves/
Single-player saves on Windows are in %APPDATA%\Factorio\saves.
Step 3: Configure Server Settings
The server-settings.json file controls how your server behaves. Start from the example rather than writing your own:
cp data/server-settings.example.json server-settings.json
Here's a trimmed version with commonly changed settings:
{
"name": "Your Factory Name",
"description": "A multiplayer factory",
"tags": ["factory", "multiplayer"],
"max_players": 0,
"visibility": {
"public": false,
"lan": true
},
"username": "",
"token": "",
"game_password": "choose-a-password",
"require_user_verification": true,
"allow_commands": "admins-only",
"autosave_interval": 10,
"autosave_slots": 5,
"afk_autokick_interval": 0,
"auto_pause": true,
"only_admins_can_pause_the_game": true
}
Key settings:
- max_players: maximum players; 0 means no limit (admins can still join a full server)
- visibility.public: lists the game on Factorio's public server browser. This needs your factorio.com
usernameplus atoken(or password) - game_password: password players enter to join
- require_user_verification: only allows players with a valid factorio.com account
- allow_commands:
true,falseoradmins-only - autosave_interval: minutes between autosaves
- autosave_slots: how many autosave files to rotate through
- afk_autokick_interval: minutes of inactivity before a player is kicked; 0 means never
- auto_pause: pauses the game when no players are connected
Step 4: Manage Your Mod List
All players must run the same mods and versions as the server. Factorio checks this when someone connects.
Adding Mods
Mods go in the mods folder as .zip files. You can download them from the Factorio mod portal, or copy them from your own game's mods folder (on Windows, %APPDATA%\Factorio\mods). That folder also has a mod-list.json you can copy, which is the easiest way to make the server match your game.
mkdir -p /opt/factorio/mods
mod-list.json lists which mods are enabled:
{
"mods": [
{ "name": "base", "enabled": true },
{ "name": "space-age", "enabled": true },
{ "name": "quality", "enabled": true },
{ "name": "elevated-rails", "enabled": true },
{ "name": "your-mod-name", "enabled": true }
]
}
The space-age, quality and elevated-rails entries enable the Space Age expansion content. Leave them out (or set them to false) for a base-game server.
Players: the server doesn't send mod files to players. When someone joins with missing or mismatched mods, Factorio can offer to download the matching versions from the mod portal. Sharing your mod list ahead of time still saves everyone time.
Step 5: Launch Your Server
On Linux
cd /opt/factorio
./bin/x64/factorio --start-server ./saves/my-save.zip \
--server-settings ./server-settings.json
To always load the newest save (useful after autosaves):
./bin/x64/factorio --start-server-load-latest \
--server-settings ./server-settings.json
The default port is 34197. Use --port to change it.
On Windows
From Command Prompt, using your game install:
"C:\Program Files (x86)\Steam\steamapps\common\Factorio\bin\x64\factorio.exe" --start-server "C:\Factorio\saves\my-save.zip" --server-settings "C:\Factorio\server-settings.json"
Adjust the paths to match your install.
Running in the Background (Linux)
Use screen, tmux or a systemd service so the server keeps running after you disconnect:
screen -S factorio -d -m /opt/factorio/bin/x64/factorio --start-server-load-latest \
--server-settings /opt/factorio/server-settings.json
Reattach with screen -r factorio.
Step 6: Port Configuration and Firewall
Factorio uses UDP only, on port 34197 by default.
On Linux (UFW):
sudo ufw allow 34197/udp
On Windows: allow factorio.exe through Windows Defender Firewall, or add an inbound rule for UDP 34197.
If the server is behind a router, forward UDP 34197 to the server's local IP address.
RCON (remote console) is off unless you enable it. If you want it, add --rcon-port and --rcon-password to the launch command, and open that TCP port only to the machines that need it.
Step 7: Connect Your Players
Players connect from the Factorio main menu:
- Click Multiplayer
- Select Connect to address
- Enter the server's IP address (add
:portif it isn't 34197) - Enter the game password if you set one
If the server is public, players can also find it by name in the public game browser.
Step 8: Managing Your Server
Admins can run commands from in-game chat, the server console or RCON.
Admins
Promote a player in-game:
/promote player_name
/demote player_name
Admins are stored in server-adminlist.json, which you can also edit directly.
Common Server Commands
# Add or remove a player from the whitelist
/whitelist add player_name
/whitelist remove player_name
/whitelist get
# Save the game on the server
/server-save
# Kick or ban a player
/kick player_name reason
/ban player_name reason
# List online players
/players online
An empty whitelist means anyone can join. To enforce the whitelist from launch, start the server with --use-server-whitelist=true (and optionally --server-whitelist pointing at a JSON file).
Space Age Server Setup
The Space Age expansion works on dedicated servers. To run it:
- Enable
space-age,qualityandelevated-railsinmod-list.json - Make sure every player owns Space Age
- Create a new save with Space Age enabled, or load an existing Space Age save
- Keep an eye on performance as you expand to more planets and platforms; more running factories means more work per tick
Troubleshooting Common Issues
Server Won't Start
Save won't load
- Check the save path and that the file isn't corrupted
- Make sure the server can read the file (permissions)
- Make sure the server has every mod the save needs
Port already in use
- Another program (or another Factorio server) is using the port
- On Linux,
sudo lsof -i :34197shows what's using it - Use
--portto pick a different one
Players Can't Connect
- Check that UDP 34197 is open in the firewall and forwarded on the router
- Make sure players are using your public IP, not a local one
- Check that players are on the same Factorio version as the server
- Check that players have the same mods and versions
Server Crashing After Updates
- Update the server to the same Factorio version as players
- Update mods to versions that support the new game version
- Read Factorio's release notes and each mod's changelog for breaking changes
Lag or Low UPS
- Check whether the server is keeping 60 UPS; if not, the factory has outgrown the CPU
- Raise
minimum_latency_in_ticksif players on high-ping connections have trouble - Remove or replace mods that add heavy per-tick work
- Move to a machine with faster single-thread CPU performance
FAQ: Factorio Server Questions
How do I set up a Factorio server?
Download the headless server (Linux) or use your game install (Windows), create a save with --create, copy and edit server-settings.json, open UDP 34197, and start the server with --start-server.
What port does Factorio use?
UDP 34197 by default. Factorio uses UDP only for game traffic. RCON, if you enable it, uses the TCP port you choose with --rcon-port.
How do I sync mods on a dedicated Factorio server?
Put the mod .zip files in the server's mods folder and make mod-list.json match. Players need the same mods and versions; Factorio can offer to download missing ones from the mod portal when they join.
Does Space Age work on dedicated servers?
Yes. Enable the space-age, quality and elevated-rails entries in mod-list.json. Every player needs to own Space Age.
Can I automate server saves?
Yes. autosave_interval sets how often (in minutes) and autosave_slots sets how many autosave files to keep. You can also save on demand with /server-save.
What's the difference between auto_pause and afk_autokick_interval?
auto_pause pauses the game when no players are connected. afk_autokick_interval kicks players who've been inactive for that many minutes (0 means never).
How many players can a Factorio server support?
max_players can be set to 0 for no limit. In practice, the limit depends on CPU, bandwidth, map size and mods.
Can I whitelist players?
Yes. Use /whitelist add <player>. An empty whitelist lets anyone join. Set require_user_verification to true so players must have a factorio.com account.
Performance Tips
- Use auto_pause so the factory doesn't run with nobody online
- Pick a sensible autosave interval: frequent saves on a big map can cause short stutters
- Watch UPS, not just CPU usage; 60 UPS is the target
- Be selective with mods: big overhaul mods need more CPU and RAM
- Prioritize single-thread CPU speed when choosing hardware
- Keep off-server copies of important saves
Prefer a Hosted Server?
Self-hosting works, but you manage the machine, updates, ports and backups yourself. EZ Game Host offers Factorio server hosting using the headless server, with mod portal integration, scenario support, save file uploads, automatic saves and admin controls. Every plan includes 24/7 support, and you choose your server region at checkout. Plans start at $12/month; see the Factorio plans. For help choosing a host, read our Factorio server hosting guide.
Intel
Related guides
- How to Choose a Factorio Multiplayer Server HostWhat to compare in Factorio server hosting: CPU and UPS, headless server support, mods, saves and backups, server location, support and pricing.
- How to Host a Satisfactory Dedicated Server (2026 Guide)How to host a Satisfactory dedicated server: hardware requirements, SteamCMD install, ports 7777 and 8888, claiming the server, saves, mods and troubleshooting.
- Best Satisfactory Server Hosting: How to Choose a HostWhat to compare in Satisfactory dedicated server hosting: RAM and CPU, player limits, backups, mod support, server location, support and pricing.