Hosting a Factorio headless server
Factorio publishes a free headless build for Linux. The game is deterministic and every client simulates the whole factory too, so the server's job is to stay in lockstep at 60 updates per second.
How do I install the headless server?
Download the headless archive from the official website; it needs no account and no game licence. Extract it into a dedicated user's home and create a first map.
useradd -m -d /opt/factorio -s /usr/sbin/nologin factorio tar -xJf factorio-headless_linux_2.0.x.tar.xz -C /opt --no-same-owner && chown -R factorio: /opt/factorio sudo -u factorio /opt/factorio/bin/x64/factorio --create /opt/factorio/saves/gears.zip --map-gen-settings /opt/factorio/data/map-gen-settings.example.json
Copy the example map generation file first if you want to change resource richness, cliffs or biters. Then start the server on that save:
sudo -u factorio /opt/factorio/bin/x64/factorio --start-server /opt/factorio/saves/gears.zip --server-settings /opt/factorio/data/server-settings.json
Which port does it need?
UDP 34197 and nothing else for players. If you enable RCON with --rcon-port and --rcon-password, keep that TCP port reachable only from your admin address or localhost.
What does server-settings.json control?
The public face and the housekeeping of the server. Copy server-settings.example.json and set:
name,descriptionandtagsfor the browser listing.visibility: public listing needs your gameusernameandtoken; LAN visibility needs neither.game_passwordandrequire_user_verificationto control who joins.max_players: zero means no limit.autosave_intervalin minutes andautosave_slotsfor the rotation.auto_pause: pause the factory when nobody is connected.non_blocking_saving: on Linux the server can save in a forked process so players do not freeze during autosaves.
Admins go in server-adminlist.json as a list of player names.
What is UPS and what keeps it at 60?
Updates per second: the game targets 60 simulation ticks a second, and every client must keep up with the server or fall behind. The update loop is mostly one thread and very sensitive to memory latency, because a large base touches huge numbers of entities every tick. This is where processor cache pays off. Large stacked caches, like those on X3D chips, are well known among megabase builders for holding UPS higher than raw clock speed alone would suggest.
| Factory size | Server memory | What to look for |
|---|---|---|
| Starter to rocket launch | 2 to 4 GB | Any modern core |
| Large base, many trains | 4 to 8 GB | High clock, fast memory |
| Megabase or several planets | 8 to 16 GB | Large L3 cache first |
GAME-1 2026 pairs the AMD Ryzen 7 9800X3D with 64 GB DDR5, ideal when the factory is the point of the server, at $198.60 a month. For groups still before their first rocket, ESSENTIAL-GAME-1 at $43.20 is plenty.
How do mods and Space Age work on a server?
Mods sit as zip files in the mods folder with a mod-list.json saying which are enabled. Players joining a modded server are offered the same set and download it from the mod portal in the client. The Space Age expansion is enabled through that list too; the headless build includes its data, while each player needs the expansion on their own account to join. Saves remember their mod set, so keep the folder and the save together when moving servers.
How do I back up the factory?
Copy the saves folder; each autosave slot is a complete, self-contained zip. Because non_blocking_saving writes consistently, copying the newest completed autosave is safe while the server runs.
ls -t /opt/factorio/saves/_autosave*.zip | head -n 1 | xargs -I{} cp {} /srv/factorio-archive/gears-$(date +%F).zip
How do I update?
Download the new headless archive, stop the service, extract over the old folder, and start again; saves and settings stay where they are. Major versions occasionally change mods, so check that each one has an update first. A systemd unit with Restart=on-failure keeps the server up. For multiple servers, each instance takes its own port with --port and its own copy of the settings, and the Firewall for game servers guide shows how to open just those UDP ports.
Machines for Factorio factories
Lowest monthly price of each model across its data centres; the model page shows the price in every location.
| Model | Processor | Cores | Memory | Drives | Port | Per month |
|---|---|---|---|---|---|---|
| ESSENTIAL-GAME-1 | AMD Ryzen 5 5600X | 6 | 32 GB | 2x 512 GB SSD NVMe | 1 Gbps unmetered | $43.20 |
| ESSENTIAL-S | AMD Ryzen 7 9700X | 8 | 64 GB | 2x 512 GB SSD NVMe | 1 Gbps unmetered | $46.20 |
| ESSENTIAL-M | AMD Ryzen 9 9900X | 12 | 64 GB | 2x 512 GB SSD NVMe | 1 Gbps unmetered | $70.80 |
| GAME-1 2026 | AMD Ryzen 7 9800X3D | 8 | 64 GB | 2x 960 GB SSD NVMe | 1 Gbps unmetered | $198.60 |
| GAME-2 2026 | AMD Ryzen 9 9950X3D | 16 | 64 GB | 2x 960 GB SSD NVMe | 1 Gbps unmetered | $222.60 |
Large cache and high clocks hold 60 UPS as the factory grows.
Related pages
Game server hosting
Ryzen X3D and Ryzen 5000 machines for Minecraft, Rust, CS2 and FiveM worlds that need steady tick rates.
Read moreCores or clock speed: which to buy
How to tell whether your software wants many cores or a few fast ones, with worked numbers from machines on our list.
Read moreFirewall for game servers
Open exactly the UDP and TCP ports a game needs, protect query ports from reflection abuse and keep lag low under load.
Read moreQuestions and answers
Is the Factorio headless server free?
Yes. The headless Linux build is a free download from the official site and needs no game licence.
Which port does a Factorio server use?
UDP 34197 by default. RCON, if enabled with --rcon-port, should be reachable only from your admin address.
What is UPS in Factorio?
Updates per second. The game targets 60; large bases can drop below that when the server cannot simulate every entity in time.
Why does processor cache matter for Factorio?
The update loop touches many entities every tick and is sensitive to memory latency, so a large L3 cache keeps UPS higher on big bases.
Can a Factorio server run Space Age?
Yes. The headless build includes the expansion data; each player needs Space Age on their own account to join such a save.