A complete walkthrough for running your own Factorio dedicated server — install the free headless server, load or generate a save, open the port and tune server-settings.json. Factorio is famously light to host, so it runs 24/7 on very little. Plus the one-click hosted route if you'd rather skip the setup.
Factorio ships a free headless server — no graphics, tiny footprint — that runs natively on Linux. You can self-host it or use managed Factorio server hosting for an always-online factory with a panel. It's one of the lightest games to run: a fast CPU core matters far more than lots of RAM.
This guide covers the self-hosted route step by step, and points out where a host saves you the hassle.
What you'll need
- A machine to run the server — almost anything, or a host for 24/7 uptime.
- The free headless server (tarball or SteamCMD app 427520).
- A save file to host (generated or uploaded).
- server-settings.json configured (name, players, visibility).
- Open port: UDP 34197.
Set up a Factorio dedicated server, step by step
Step 1: Choose self-host or a managed host
The headless server is free, but self-hosting needs a machine on 24/7 and port-forwarding. A managed host gives you an always-online factory and a panel in minutes. Want zero hassle? Pick a host and skip to step 5.
Step 2: Get the headless server
Two ways: download the headless tarball from the official Factorio site (smallest, no graphics), or install via SteamCMD (Steam app 427520) which starts headless when given the server flags. The headless tarball is the usual choice for Linux.
steamcmd +login anonymous +force_install_dir ./factorio +app_update 427520 validate +quit # or: download the headless tarball from factorio.comStep 3: Create or upload a save
Factorio needs a save file to host. Generate one with
--create, or upload an existing single-player save — your factory carries straight over../bin/x64/factorio --create ./saves/myworld.zipStep 4: Configure server-settings.json
Copy
server-settings.example.jsontoserver-settings.jsonand set the name, description, max players, visibility and whether it's public. This is where you control the whole server.Step 5: Launch & open the port
Start the server pointing at your save and settings, and forward UDP 34197 (the default) so players can connect. On a managed host this is opened for you.
./bin/x64/factorio --start-server ./saves/myworld.zip --server-settings ./server-settings.json # port: 34197/udpStep 6: Add mods (optional)
Factorio has a huge mod scene. Drop mod .zip files into the
modsfolder (or set them via the mod portal), and players auto-download matching mods on join. Keep the server and clients on the same mod versions.
Run a smooth factory
One fast core is everything
Factorio's simulation (UPS) runs on a single thread, so a fast high-clock CPU keeps a huge factory at 60 UPS. Core count barely matters — clock speed does.
It barely uses RAM
A Factorio server runs on 1-2 GB for most maps. It's one of the cheapest games to host — spend on CPU speed, not memory.
Match mod versions
Clients auto-download server mods, but versions must line up. Keep the server's mods updated in step with your players to avoid join errors.
Autosave sensibly
Factorio autosaves on an interval — keep a few rotations so a corrupt save never costs the factory, and back up the saves folder before big changes.
Common problems & fixes
Players can't connect
UDP 34197 isn't open. Forward it on the router and confirm the host firewall allows it.
The factory runs below 60 UPS
The CPU is the bottleneck — Factorio's sim is single-threaded. Move to a faster high-clock core; more RAM won't help.
Players get a mod-mismatch error
Server and client mod versions differ. Update the server's mods to match, and clients auto-download the rest.
The server won't start
Usually a missing --server-settings or an invalid save path. Check the launch flags point at a real save and a valid server-settings.json.
Factorio is a trademark of Wube Software. ESAGAMES is an independent hosting provider, not affiliated with or endorsed by Wube Software. You must own a legitimate copy of the game to play.