Skip to content

Hytale Chapter I: Out of the Breach is live. Start a world for your group. Friends on Windows, Mac and Linux play together. Host Hytale

How to set up a Factorio dedicated server

Rent a Factorio server or run the free headless server on Linux. Create or upload a save, set a password, open UDP 34197, then join with Connect to address.

TL;DR: A Factorio dedicated server keeps your factory running when the host logs off. You can rent one, or run Wube's free headless server on a Linux machine.

Either way, the server loads a save file, and friends join with Connect to address. The default port is UDP 34197.

Want the port and updates handled for you? Start a Factorio server on berrybyte, from $4.95/mo.

Set up a Factorio server on berrybyte

Order the server

Open Factorio server hosting, pick a plan and the location closest to your group, and check out. Plans are sold by player slots: 4 slots is $4.95/mo, 12 slots is $9.95/mo (the plan we recommend for most groups) and 32 slots is $19.95/mo.

Wait for the install

Setup usually takes a few minutes. The install makes a new map called gamesave. Watch Console until it shows "Hosting game at".

Set the name and password

Open Game settings in the server sidebar. Set Server Name and, for a private server, Server password. Click Save & restart, or Save if the server is stopped.

Join the server

Copy Server address from Overview. In Factorio, click Multiplayer, then Connect to address. Paste the address, enter the password if there is one, and click Connect.

We open the server's port for you, so there's nothing to forward. If a player can't get in, see can't connect to a Factorio server.

Settings on berrybyte

Game settings lists the server's options by name. They include Server Name, Server Description, Server password, Save Name, Auto Save Interval, Auto Save Slots, AFK Kick and Factorio Version. Your plan sets the player slots.

Change these in Game settings, not in Files. berrybyte writes them into data/server-settings.json on every start, so a file edit to the same keys doesn't stick.

To list the server publicly, enter your factorio.com name and token as Server Username and Server Token. Without them, friends still join with Connect to address.

Updating the server

A restart doesn't download a new Factorio build. To update, open Settings → Software & updates → Maintenance, click Reinstall and confirm. It keeps your files, including your saves.

Factorio Version is latest (the newest stable release) by default. Set it to experimental before you reinstall if your group plays the experimental branch.

Space Age and mods

Wube's download page says the headless server "comes with Space Age content" and is free to download. The official wiki says every player needs "exactly the same" game version and mods as the server.

So if your server runs Space Age, everyone who joins needs Space Age too. The same goes for every other mod on the server, down to the version.

Stop the server and back up

Make a backup under Backups, then stop the server.

Upload the mods

In Files, open the mods folder and upload each mod's .zip file. You can also use SFTP.

Start and test

Start the server and read Console for mod errors. Then join with one player before you invite the group.

Run the free headless server on Linux

Wube offers a free headless version for Linux, without graphics or sound. These steps follow the official wiki's Multiplayer page.

Download and unpack it

Get Factorio (Headless, for servers) from the download page and unpack it. The game folder then holds your saves, mods and settings.

Create a save

The server needs a save before it starts. Make one with ./bin/x64/factorio --create ./saves/my-save.zip, or copy in a save from your PC.

Add server settings

Example settings files are in the data folder. Copy server-settings.example.json to server-settings.json and set the name and password.

Start the server

Run ./bin/x64/factorio --start-server ./saves/my-save.zip --server-settings ./data/server-settings.json.

Forward UDP 34197

Factorio uses UDP only, on port 34197 by default. Forward that UDP port on your router, and make sure no firewall or antivirus blocks it.

Just playing one evening? In the game, Multiplayer → Host saved game hosts a save from your own PC. The world goes offline when you close the game.

Move a single-player save to the server

Your saves are .zip files in the saves folder of Factorio's user data directory:

  • Windows: %appdata%\Factorio\saves
  • macOS: ~/Library/Application Support/factorio/saves
  • Linux: ~/.factorio/saves

Back up and stop the server

Make a backup under Backups first. Then stop the server.

Upload the save

In Files, open the saves folder and upload your .zip save. You can also use SFTP.

Point the server at it

In Game settings, set Save Name to the file name without .zip (MyFactory.zip becomes MyFactory). Save Name takes only letters, numbers, dashes and underscores, so rename a file with spaces before you upload it. Then start the server.

If the save uses mods or Space Age, the server needs the same ones. Check the Space Age and mods steps above before you start it.

Self-host or rent?

Your own Linux machineberrybyte
CostFree server, plus your hardware and powerFrom $4.95/mo
Online when you log offOnly if the machine stays onYes
Port forwardingYou set up UDP 34197Not needed
BackupsYou make your ownAutomatic backups on every plan
UpdatesDownload each release yourselfReinstall from the dashboard

Self-hosting suits a group with a spare Linux box. Rent a server when people play at different times, or when your router won't forward ports.

Want your factory running between sessions? Start a Factorio server.

Frequently asked questions

How do I make a Factorio dedicated server?

Rent one, or download the free headless server for Linux from factorio.com. Create a save with --create, then start it with --start-server and your save file. Players join with Multiplayer, then Connect to address.

What port does a Factorio server use?

UDP 34197 by default, and Factorio uses UDP only. Forward that UDP port on your router if you self-host. On berrybyte, the port is opened for you.

Does the Factorio headless server include Space Age?

Yes. Wube says the headless version comes with Space Age content and is free to download. Every player still needs exactly the same game version and mods as the server, so if the server runs Space Age, players need it too.

Can I use my single-player save on a dedicated server?

Yes. Copy the .zip save from your saves folder, upload it to the server's saves folder, and point the server at it. Back up the server first.

How much does a Factorio server cost?

The headless server is free. On berrybyte, plans start at $4.95/mo for 4 slots, and the 12-slot plan we recommend for most groups is $9.95/mo.

How do I make my Factorio server show in the public list?

The public list needs your factorio.com username and token. On berrybyte, enter them as Server Username and Server Token in Game settings. Friends can always join with Connect to address instead.

Start a game
server with friends

Join the Discord