Articles
Explore some articles written by our team & fellow gamers!
Explore some articles written by our team & fellow gamers!
We use cookies to enhance your browsing experience, analyze site traffic, and personalize content. By clicking “Accept”, you consent to our use of cookies. Read our Privacy Policy to learn more.
So you want to build that mega-factory with your friends, but playing on someone's PC while they're AFK isn't cutting it anymore? Setting up a Factorio dedicated server is exactly what you need. Whether you're planning a casual factory expansion or a serious space age operation, a dedicated server keeps your world running 24/7 without depending on anyone's gaming rig.
In this guide, we'll walk you through everything—from downloading the headless server binary to configuring mods, managing player whitelists, and optimizing performance. By the end, you'll have a fully functional multiplayer Factorio server ready for your team of engineers.
Before we dive into the setup, let's talk about why a dedicated server beats the alternatives:
If you're serious about multiplayer Factorio, hosting on a dedicated server is a game-changer. Services like EZ Game Host handle the infrastructure, so you can focus on building instead of managing server hardware.
Here's what you should have ready:
The first step is getting the actual server files. Head to your Factorio account page and navigate to the downloads section.
Download the headless server binary for your architecture (x64 or ARM):
cd /opt/factorio
wget https://factorio.com/get-download/latest/headless/linux64
tar -xzf factorio-<version>_headless_x64.tar.gz
Download the Windows headless server package, extract it to a folder like C:\Factorio, and you're ready to go. Windows users will run the server via factorio.exe with command-line arguments.
Pro tip: If you're not sure which version to download, check your Factorio account profile—it'll recommend the right one for your OS.
Before launching the server, you need a map. You can either generate a new one or use an existing save file.
Create or modify map-gen-settings.json to customize terrain generation, water coverage, ore placement, and enemy bases. Here's a starter template:
{
"terrain_segmentation": 0.5,
"water": 0.5,
"peaceful_mode": false,
"autoplace_controls": {
"coal": {"frequency": "normal", "size": "normal", "richness": "normal"},
"copper-ore": {"frequency": "normal", "size": "normal", "richness": "normal"},
"iron-ore": {"frequency": "normal", "size": "normal", "richness": "normal"},
"stone": {"frequency": "normal", "size": "normal", "richness": "normal"},
"crude-oil": {"frequency": "normal", "size": "normal", "richness": "normal"}
},
"cliff_settings": {
"cliff_elevation_0": 10,
"cliff_elevation_interval": 10,
"cliff_richness": 1
},
"starting_area_size": 2,
"pollution": {
"enabled": true
},
"enemy_evolution": {
"enabled": true,
"time_factor": 4e-05,
"destroy_factor": 2e-05,
"pollution_factor": 9e-06
},
"enemy_expansion": {
"enabled": true,
"max_expansion_distance": 7,
"friendly_base_influence_radius": 2,
"enemy_building_influence_radius": 2,
"building_coefficient": 0.1,
"other_base_coefficient": 2.0,
"neighbouring_chunk_coefficient": 0.5,
"neighbouring_base_chunk_coefficient": 0,
"max_colonist_platoon_size": 20,
"max_groups_gathering_at_target": 5,
"max_group_gathering_timer": 300
},
"space_age_distance_check": true
}
Customize these values based on your preferred difficulty and resource distribution. The space_age_distance_check setting enables Space Age content on your server.
If you have a save file from single-player, copy it to the server's saves directory:
cp /path/to/your/save.zip /opt/factorio/saves/
The server-settings.json file controls how your server behaves. Create or edit this file in your Factorio server directory with the following configuration:
{
"name": "Your Factory Name",
"description": "A multiplayer factory building adventure",
"tags": ["factory", "multiplayer", "space-age"],
"max_players": 255,
"visibility": {
"public": false,
"lan": true
},
"username": "your_factorio_username",
"password": "optional_server_password",
"token": "your_authentication_token",
"game_password": "",
"require_user_verification": true,
"max_upload_size": 65534,
"minimum_latency_in_ticks": 0,
"afk_autokick_interval": 0,
"autosave_interval": 10,
"autosave_slots": 5,
"admins": [],
"allow_commands": "admins-only",
"ignore_player_limit_for_returning_players": false,
"allow_afk_players": true,
"auto_pause": true,
"only_admins_can_pause_the_game": true,
"only_admins_can_configure": false,
"polling_interval": 5,
"afk_autokick_interval": 3600
}
Key settings to understand:
Save this configuration carefully—these settings define your server's behavior and difficulty.
Love mods? Your dedicated server can handle them with mod syncing, ensuring all players have the same mod versions.
mkdir -p /opt/factorio/mods
Download mods from the Factorio mod portal and place .zip files in the mods directory. You can also specify mods in mod-list.json:
{
"mods": [
{
"name": "base",
"enabled": true
},
{
"name": "space-age",
"enabled": true,
"version": "2.0.0"
},
{
"name": "bobsmods",
"enabled": true,
"version": "1.1.5"
},
{
"name": "PyMods",
"enabled": true,
"version": "2.0.0"
}
]
}
Important: All players connecting to the server must have the exact same mods installed. The server won't auto-download mods to clients, so communicate your mod list to your team beforehand.
Time to bring your factory online!
cd /opt/factorio
./bin/x64/factorio --start-server saves/your_save.zip --port 34197
Add --server-settings server-settings.json if you want to use custom settings:
./bin/x64/factorio --start-server saves/your_save.zip \
--server-settings server-settings.json \
--port 34197
From Command Prompt or PowerShell:
C:\Factorio\bin\x64\factorio.exe --start-server "C:\Factorio\saves\your_save.zip" ^
--server-settings "C:\Factorio\server-settings.json" ^
--port 34197
Use screen or systemd to keep the server running after you disconnect:
screen -S factorio -d -m /opt/factorio/bin/x64/factorio --start-server saves/your_save.zip \
--server-settings server-settings.json \
--port 34197
Reattach with: screen -r factorio
Factorio communicates over two ports by default:
On Linux (UFW):
sudo ufw allow 34197/udp
sudo ufw allow 27015/tcp
On Windows Firewall:
factorio.exe for both UDP (34197) and TCP (27015)If you're behind a router, you'll also need to forward these ports to your server's local IP address.
Now for the fun part—getting your team into the factory!
Players connect via the multiplayer menu in Factorio:
Pro tip: If you're hosting on a service like EZ Game Host, you'll get a dedicated IP and easy port forwarding. No need to juggle your home network settings.
The Remote Console (RCON) lets you manage your server without stopping it. Enable RCON by adding this to your server-settings.json:
"rcon": {
"enabled": true,
"port": 27015,
"password": "your_secure_rcon_password"
}
# Promote a player to admin
/admin player_name
# Remove admin privileges
/remove-admin player_name
# Whitelist a player
/whitelist player_name
# Remove from whitelist
/remove-whitelist player_name
# Save the game manually
/save
# Pause the game
/pause
# Kick a player
/kick player_name
# Check active players
/players
Tools like Factorio Remote Tools (browser-based) make RCON management super convenient.
Running Space Age on your dedicated server? Good news—it works flawlessly on dedicated servers. Make sure to:
space_age_distance_check in your map-gen-settings.jsonSpace Age content scales beautifully on dedicated servers, letting your entire team coordinate Nauvis base operations and interplanetary logistics without lag.
Error: "Cannot load map"
Error: "Port already in use"
--port XXXXXsudo lsof -i :34197 to find what's using itmod-list.json to match compatible mod versionsminimum_latency_in_ticks in server-settings.jsonQ: How do I set up a Factorio server?
A: Download the headless server binary from your Factorio account, configure server-settings.json and map-gen-settings.json, open ports 34197 (UDP) and 27015 (TCP), and launch the server with appropriate command-line arguments. Follow the step-by-step guide above for detailed instructions.
Q: What port does Factorio use?
A: Factorio uses port 34197 UDP for game traffic (multiplayer connections and world updates) and port 27015 TCP for RCON (remote console commands). Both must be open in your firewall and port-forwarded if behind a router.
Q: How do I sync mods on a dedicated Factorio server?
A: Place all mod .zip files in the mods directory and create a mod-list.json file specifying which mods are enabled. All players connecting must have the exact same mods installed locally. The server doesn't auto-download mods to clients, so communicate your mod list in advance.
Q: Does Space Age work on dedicated servers?
A: Yes! Space Age works perfectly on dedicated servers. Enable space_age_distance_check in map-gen-settings.json, ensure all players have Space Age installed, and configure performance settings appropriately for interplanetary operations.
Q: Can I automate server saves?
A: Yes. Set autosave_interval to save every N minutes (10 is typical) and autosave_slots to keep multiple backup saves. You can also manually trigger saves via RCON with the /save command.
Q: What's the difference between auto_pause and afk_autokick_interval?
A: auto_pause halts the game when zero players are online, conserving server resources. afk_autokick_interval automatically removes idle players after a specified time (e.g., 3600 seconds = 1 hour). Use both to optimize performance and manage active players.
Q: How many players can a Factorio server support?
A: Factorio supports up to 255 players, but performance depends on your hardware, map complexity, and mod count. Most home setups comfortably run 4-20 players. Dedicated hosting services can handle much larger playerbases.
Q: Can I whitelist players?
A: Yes. Use RCON commands or edit server-settings.json to manage admins and whitelists. Configure require_user_verification to ensure players are logging in with actual Factorio accounts.
/save commands during low-activity periodsWhile self-hosting works great, managing server hardware, updates, and networking can be tedious. Services like EZ Game Host offer:
For serious factories, a managed hosting solution takes the complexity out of server administration, letting you focus on building the ultimate base.
You now have everything needed to launch a Factorio dedicated server and build the megafactory of your dreams with your team. From configuring maps and mods to managing player access and performance, you're equipped to run a professional multiplayer operation.
Whether you go the DIY route or choose managed hosting, the most important thing is getting your factory online. Head out there, optimize those supply lines, and let the factory grow.
Happy engineering!
Need hands-off server management? Check out Factorio server hosting options at EZ Game Host for more multiplayer setup tips and professional infrastructure.