Free hosting
Minecraft JavaMinecraft BedrockPaperMCFabricForgeGeyserMCTerrariaFactorioHytaleDiscord bots
Go premium

No hibernation, no timers, 5 GHz CPUs and up to 32 GB RAM.

From €1.99/month →
Tools & help
RAM calculatorMOTD generatorServer status checkerserver.properties generatorGuidesDiscord community
Language
EnglishNederlandsEspañolFrançaisDeutschItalianoPortuguêsLatviešuPolskiSuomiNorskRomânăPortuguês (BR)Türkçeहिन्दी
Start free
Factorio · Server guide

How to make a Factorio server

A dedicated Factorio server keeps your factory running while you are away and lets friends join any time. This guide covers the free hosted way and the do-it-yourself way, plus ports, saves, admin commands and mods including Space Age.

FreeGameHost logo FreeGameHost Guides Updated 3 min read
A Factorio factory next to a server console

Quick answer

  1. Create a free Factorio server at FreeGameHost, or download the headless server from factorio.com.
  2. Start it and note the address. Factorio uses UDP port 34197.
  3. In Factorio choose Multiplayer → Connect to address, enter the address, and join.

What you need#

RequirementDetails
GameEveryone needs a copy of Factorio on the same version as the server.
Space AgeNeeded by players only if the save uses the expansion.
PortUDP 34197 reachable from the internet.
MemoryA few GB is enough for small to medium factories. Megabases need more CPU than RAM.

Option 1: free hosted server#

  1. Create the server

    Go to free Factorio hosting and create a server. Name it and choose the save name and max players on the order form.

  2. Start it

    The panel installs the latest Factorio server and creates a new map the first time it starts, saved as gamesave.zip unless you chose another name.

  3. Copy the address

    The Console page shows the address and port.

  4. Join

    In Factorio: Multiplayer → Connect to address, enter address and port.

Server settings you can change#

The Startup page has these settings, which the panel writes to server-settings.json each time the server starts:

SettingDefaultWhat it does
Server name / descriptionFactorio ServerShown in the server browser.
Maximum slots20Player limit.
Save namegamesaveWhich save in the saves folder to load.
Auto save interval10 minHow often the game saves.
Auto save slots5How many autosaves are kept.
AFK kick0 (off)Minutes before idle players are kicked.
Username / token(empty)Only needed to list the server publicly.

Free servers need to be renewed to stay online. Check the time left on the Console page.

Free Factorio server Space Age and mods supported. Start building in minutes.
Create a Factorio server

Option 2: run it yourself#

  1. Download the headless server

    On factorio.com download the Linux headless build (or use the Windows game install). Extract it.

  2. Create a map

    Run the command below once.

  3. Start the server

    Run the second command. Add --server-settings to use a settings file.

  4. Open the port

    Allow and forward UDP 34197 to your computer.

Terminal
./bin/x64/factorio --create ./saves/mymap.zip
./bin/x64/factorio --start-server ./saves/mymap.zip --port 34197

Admins and commands#

Type these in the server console. In-game, use the same commands with a slash in chat.

Console
/promote PlayerName
/demote PlayerName
/kick PlayerName
/ban PlayerName
/players online
/save

Mods and Space Age#

Mods come from the Factorio Mod Portal. Put them in the server's mods folder along with a mod-list.json that enables them, or install them through the panel. Players need the same mod versions; Factorio can offer to download missing mods when a player joins.

Popular choices include Space Age (the official expansion), Krastorio 2, Space Exploration, Bob's Mods, Angel's Mods and Logistic Train Network. Big overhaul mods make saves heavy, so expect slower ticks and plan for more CPU.

Back up your save before adding or removing a mod. Removing a mod from an existing save can delete everything it added.

Troubleshooting#

  • "Connection refused / timed out": the server isn't running, or the port isn't open for UDP.
  • "Version mismatch": update the game or the server so both match.
  • "Mod mismatch": let Factorio download the server's mods, or install the same versions.
  • Server lag in a big factory: Factorio runs on one main thread. Reduce expensive belts and inserters, or move to a faster CPU.
  • Server found in browser but not by address: check you used the right port.

Frequently asked questions#

What port does a Factorio server use?

UDP port 34197 by default. It is UDP only, so a TCP-only port forward won't work.

Do all players need the same version?

Yes. The client and the server must run the same Factorio version, and mods must match. If the server auto-updates, players must update too.

Do players need to own Space Age?

To play a save that uses Space Age content, players need the Space Age expansion. A server can run the base game only if you don't enable it.

Do I need a server token?

Only if you want the server listed in Factorio's public server browser. For a private server, friends join by address and you can leave the token empty.

How do I become admin on the server?

Run /promote YourName in the server console, or add your name to server-adminlist.json.

Can I load my single-player save?

Yes. Upload the save .zip to the server's saves folder and set the save name to match. Back up first.