Scrap Mechanic WikiScrap Mechanic Wiki
Task GuideP20

Multiplayer & Servers

Online connection methods comparison, dedicated server setup, configuration parameters explained, player count performance optimization, collaboration roles, permission protection, and common troubleshooting.

Category

community

Guide Type

Task Guide

Version

1.0 (Drilling Thunder)

Multiplayer & Servers

Scrap Mechanic supports online co-op multiplayer, letting you build, explore, and survive with friends. From casual 2-player sessions to dedicated servers with dozens of players, this guide covers connection methods, server setup, configuration, optimization, and troubleshooting.

Online Connection Methods Comparison

MethodPlayersSetupUptimeBest For
Host & Join (P2P)2-8EasyOnly when host is onlineCasual play with friends
Dedicated Server8-32+Medium-Hard24/7 (if running)Persistent worlds, communities
Community ServerVariesNone (just join)24/7Playing with strangers, modded servers
LAN2-8EasyOnly when host is onlineLocal network play

Dedicated Server Setup

A dedicated server runs independently of any player's game, allowing 24/7 uptime and persistent worlds. Here's how to set one up.

System Requirements

  • OS — Windows 10/11 or Linux (via Wine/Proton)
  • CPU — Multi-core processor (more cores = more players supported)
  • RAM — 8GB minimum (16GB+ recommended for 10+ players)
  • Storage — SSD recommended (faster world loading, less lag)
  • Network — Stable broadband with good upload speed (10+ Mbps upload for 10+ players)
  • Steam — SteamCMD for server installation (no full Steam client needed)

Installation Steps (Windows)

  1. Install SteamCMD — Download from Valve's developer site, extract to a folder
  2. Download server files — Run SteamCMD with the Scrap Mechanic dedicated server app ID
    • Open command prompt in the SteamCMD folder
    • Run: steamcmd +login anonymous +force_install_dir C:\SM_Server +app_update [APPID] validate +quit
    • Replace [APPID] with the Scrap Mechanic dedicated server app ID (check SteamDB for current ID)
  3. Configure server — Edit the server config file (see below)
  4. Port forwarding — Forward the game port (default 25000 UDP) on your router
  5. Start server — Run the server executable or batch file
  6. Test connection — Launch the game, connect to your server's IP or localhost

Installation Steps (Linux)

  1. Install SteamCMD via your package manager or manual download
  2. Use Wine or Proton to run the Windows server executable (native Linux server may not be available)
  3. Follow the same configuration and port forwarding steps as Windows
  4. Consider using a VPS (Virtual Private Server) for 24/7 uptime

Configuration Parameters Explained

Server settings are stored in a configuration file (usually JSON or XML format in the server directory).

ParameterDefaultDescription
serverName"Scrap Mechanic Server"Server name shown in browser
maxPlayers8Maximum concurrent players
port25000UDP port for game traffic
password"" (none)Server password (leave empty for public)
gameMode"survival"Game mode (survival, creative, challenge)
difficulty"normal"Difficulty level (easy, normal, hard)
worldSeedRandomWorld generation seed (for specific maps)
enablePvPfalseAllow player vs player damage
enableCheatsfalseAllow console commands for all players
autoSaveInterval300 (5 min)Auto-save interval in seconds
dayNightCycletrueEnable day-night cycle
raidEnabledtrueEnable farm raid events
adminList[]List of admin player IDs/Steam IDs
whitelist[]List of allowed players (empty = public)
modList[]List of enabled mods (all players need same mods)

Player Count Performance Optimization

More players = more strain on the server. Optimize for your player count with these tips:

Small Servers (2-8 players)

  • Standard settings work fine
  • Host & Join (P2P) is usually sufficient
  • No special optimization needed
  • Can use mods without major performance impact

Medium Servers (8-16 players)

  • Use a dedicated server (P2P will lag)
  • Reduce entity density — limit complex creations and automated systems
  • Increase auto-save interval to reduce lag spikes
  • Limit mod count to essential mods only
  • Use SSD for server storage
  • Ensure 16GB+ RAM

Large Servers (16-32+ players)

  • Powerful dedicated hardware required (multi-core CPU, 32GB+ RAM)
  • Strict limits on complex creations (vehicles, automated farms)
  • Regular world cleanup to remove abandoned creations
  • Minimal mods (visual mods only; avoid gameplay mods that add entities)
  • Consider splitting into multiple smaller servers
  • Use a VPS or dedicated server hosting service
  • Network bandwidth: 50+ Mbps upload recommended

General Optimization Tips

  1. Limit physics objects — Too many moving parts (pistons, wheels, bearings) cause server lag
  2. Use static blocks — Welded/bolted creations are less CPU-intensive than dynamic ones
  3. Reduce automation — Limit the number of active sensors, controllers, and vacuum pumps
  4. Regular restarts — Restart the server every 12-24 hours to clear memory leaks
  5. Backup regularly — Auto-backup the world file in case of corruption
  6. Monitor performance — Use server console or tools to track CPU, RAM, and tick rate

Collaboration Roles

In multiplayer, dividing roles makes the group more efficient. Here are common roles for a Survival team:

RoleResponsibilitiesFocus Skills
Builder / EngineerBase construction, vehicle building, automation systemsBuilding, logic circuits, pistons
FarmerCrop management, food production, packing for saleFarming, irrigation, cooking
Miner / GathererResource gathering, mining, explorationMining, drilling, map knowledge
Fighter / DefenderCombat, base defense, Warehouse runsWeapons, bot tactics, turret setup
TechnicianVehicle maintenance, fuel management, power systemsEngines, fuel, generators, repairs
Explorer / ScoutMap exploration, locating Warehouses, finding ruinsNavigation, vehicle operation, risk assessment

Roles aren't rigid — players can switch or share responsibilities. The key is communication and coordination.

Permission Protection

Protect your world and creations with these permission and security settings:

  • Admin system — Grant admin privileges to trusted players; admins can use commands, kick/ban, and modify settings
  • Whitelist — Only allow specific players to join (ideal for private servers with friends)
  • Password protection — Require a password to join (simple but effective)
  • Build protection — Some server mods allow protecting specific areas from modification
  • Rollback — Use server backups to roll back griefing or accidental destruction
  • Logging — Enable server logging to track player actions (who built/destroyed what)
  • Kick/Ban — Admins can kick disruptive players or ban them permanently
  • PvP toggle — Disable PvP to prevent friendly fire and griefing via combat

Common Troubleshooting

ProblemCauseSolution
Can't connect to serverWrong IP, port not forwarded, firewall blockingVerify IP, forward port, check firewall/antivirus
Connection timeoutServer offline, network issue, too many playersCheck server status, test connection, reduce player count
Version mismatchGame or mod version differs from serverUpdate game, install same mods as server
High latency / lagSlow network, server overloaded, too many entitiesUse wired connection, optimize server, reduce creations
Rubber-bandingServer tick rate drops, network instabilityReduce server load, check network, restart server
Crashes on joinMod conflict, corrupt world, missing assetsVerify mods match, restore world backup, validate files
Can't see server in browserServer not registered, port issue, Steam downDirect connect via IP, check port forwarding, check Steam status
Inventory/creation lostServer crash during save, desyncRestore from backup, re-sync with server
Voice chat not workingMic permissions, in-game settings, networkCheck mic permissions, verify in-game audio settings, use external voice (Discord)

Multiplayer Tips

  1. Communicate — Use in-game chat or voice (Discord recommended) to coordinate with your team
  2. Share resources — Pool materials in a shared storage for the team's benefit
  3. Coordinate building — Plan base layout together to avoid conflicting constructions
  4. Set spawn points — All players should set their spawn at the base bed
  5. Divide and conquer — Split tasks (one farms, one mines, one builds) for faster progression
  6. Backup the world — Server hosts should regularly back up the world file
  7. Use the same mods — Ensure all players have identical mod sets to avoid crashes
  8. Respect other players — Don't destroy others' creations, don't steal resources, play cooperatively
  9. Save before quitting — If you're the host, make sure the world saves before closing the game
  10. Have fun — Scrap Mechanic is best enjoyed with friends; experiment, build crazy things, and enjoy the chaos

Related Guides