factorio is a multiplayer game server that can be hosted on a VPS or dedicated server. This comprehensive guide covers everything you need to know about hosting a factorio server for your community.
34197nonedata/server-settings.json - Server settings (use SERVER SETTINGS to edit this filedata/server-whitelist.json - Whitelist Filedata/server-adminlist.json - Adminlist Filedata/server-banlist.json - Banlist FileThe following ports are used by this game server:
| Port | Protocol | Purpose |
|---|---|---|
34197 |
UDP | Game port |
Allow server ports through your firewall:
# UFW (Ubuntu/Debian)
sudo ufw allow [PORT]/tcp
sudo ufw allow [PORT]/udp
sudo ufw reload
# FirewallD (CentOS/RHEL)
sudo firewall-cmd --permanent --add-port=[PORT]/tcp
sudo firewall-cmd --permanent --add-port=[PORT]/udp
sudo firewall-cmd --reload
# Windows Firewall
netsh advfirewall firewall add rule name="factorio Server" dir=in action=allow protocol=TCP localport=[PORT]
netsh advfirewall firewall add rule name="factorio Server" dir=in action=allow protocol=UDP localport=[PORT]
# Update system packages
sudo apt update && sudo apt upgrade -y
# Create server directory
mkdir -p ~/gameserver
cd ~/gameserver
# Download server files (method varies by game)
# Check official documentation for download links
Download the server files from the official game website or through Steam (if applicable). Extract to a dedicated folder and run the server executable.
This game can be installed via SteamCMD using App ID: none
# Update package list
sudo apt update
# Enable 32-bit architecture
sudo dpkg --add-architecture i386
sudo apt update
# Install SteamCMD
sudo apt install -y lib32gcc-s1 steamcmd
# Create directory for game server
mkdir -p ~/gameservers/factorio
# Run SteamCMD and download
steamcmd +login anonymous \
+force_install_dir ~/gameservers/factorio \
+app_update none validate \
+quit
# Server files are now in ~/gameservers/factorio/
cd ~/gameservers/factorio
ls -la
C:\steamcmd\cd C:\steamcmd
steamcmd.exe +login anonymous ^
+force_install_dir C:\gameservers\factorio ^
+app_update none validate ^
+quit
After installation, you'll need to configure your server. Here's where to find the configuration files and what settings you can change.
Important configuration files for this server:
data/server-settings.json - Server settings (use SERVER SETTINGS to edit this filedata/server-whitelist.json - Whitelist Filedata/server-adminlist.json - Adminlist Filedata/server-banlist.json - Banlist File