ThisCalculator

Everyday

7 Days to Die PvP Server Setup Guide

Updated · Standard formula, shown below

This guide walks you through setting up a dedicated 7 Days to Die server for player-versus-player (PvP) combat. You’ll learn how to install the server software, configure PvP-specific settings, and get your server online for you and your friends. By the end, you’ll have a stable, customizable PvP environment ready for action.

What You’ll Need

  • A Windows or Linux machine (dedicated hardware or a VPS) with at least 4 GB RAM (8 GB recommended) and a decent CPU.
  • SteamCMD (the command-line tool for downloading Steam server files).
  • Port forwarding access on your router (if hosting locally) or open ports on your VPS firewall.
  • The latest version of 7 Days to Die (server and client must match).
  • A text editor (like Notepad++ or VS Code) for editing config files.

Step-by-Step

  1. Install SteamCMD – Download SteamCMD from the official Valve site. On Windows, extract the zip to a folder like C:\steamcmd. On Linux, use your package manager (e.g., sudo apt install steamcmd) or download the tarball and extract it.
  2. Create a dedicated directory – Make a folder for the server files, e.g., C:\7dtd-server or /home/steam/7dtd-server. This keeps everything organized.
  3. Download the server files – Open a terminal/command prompt in the SteamCMD folder and run:
    steamcmd +login anonymous +force_install_dir C:\7dtd-server +app_update 294420 validate +quit

    On Linux, use ./steamcmd.sh instead. This downloads the dedicated server files (app ID 294420). Wait for the download to complete.

  4. Navigate to the server folder – After the download, go to the server directory. You’ll see files like 7DaysToDieServer.exe (Windows) or 7DaysToDieServer.x86_64 (Linux), plus a serverconfig.xml file.
  5. Back up the default config – Copy serverconfig.xml to serverconfig.xml.bak so you can revert if needed.
  6. Edit the server configuration – Open serverconfig.xml in a text editor. Key settings for PvP:
    • ServerName – Set a name that indicates PvP, e.g., “My PvP Server”.
    • ServerPassword – Set a password if you want to restrict access.
    • GameMode – This is crucial. Set to 2 for PvP (survival multiplayer). The default is 1 (survival co-op).
    • PlayerKillingMode – Set to 2 (kill everyone) for full PvP, 1 (kill allies only) for team-based, or 3 (kill strangers only) for a more nuanced experience.
    • ZombieFavor – Set to 0 to make zombies neutral to players, so PvP is the main threat. Set to 1 (default) for zombies attacking players.
    • BloodMoonFrequency – Adjust to your liking (e.g., 7 for a weekly blood moon).
    • MaxPlayers – Set the max number of players (e.g., 8 or 16).
    • Port – Default is 26900. You can change it if needed.
    • ServerVisibility – Set to 2 if you want the server listed publicly, or 1 for LAN only.
  7. Save the config – Save your changes and close the editor.
  8. Configure firewall/router – Forward the following ports (TCP and UDP) to your server’s IP: 26900 (game), 26901 (steam query), and 26902 (steam master). If you changed the game port, adjust accordingly. On a VPS, open these ports in the firewall.
  9. Start the server – Run the executable. On Windows, double-click 7DaysToDieServer.exe. On Linux, run ./7DaysToDieServer.x86_64 -configfile=serverconfig.xml. The server will generate a world and start listening.
  10. Verify it’s running – Look for a message like “Server started” or “Game server started” in the console. You can also check the log file for errors.
  11. Join your server – Open 7 Days to Die, go to the Server Browser, and search for your server name. Or connect directly via IP:Port (e.g., 192.168.1.100:26900).

Common Mistakes

  • Wrong GameMode – Leaving GameMode at 1 (co-op) means players can’t damage each other. Always set it to 2 for PvP.
  • Port forwarding not done – If friends can’t join, the ports are likely not forwarded correctly. Double-check your router’s port forwarding settings.
  • Version mismatch – The server and client must run the same game version. Update both to the latest stable release.
  • Not editing serverconfig.xml – Some settings are only in the XML, not in the game’s UI. Forgetting to edit it means default PvE rules apply.
  • Firewall blocking – Windows Firewall may block the server executable. Add an exception for the server .exe and the ports.

Tips

  • Test with a friend – Before opening to the public, test with a friend to ensure PvP mechanics work as intended.
  • Use a whitelist – If you want to control who joins, set ServerAdminSlots and add players to the whitelist.xml file.
  • Back up your world – Regularly copy the Save folder to prevent data loss from griefing or crashes.
  • Set clear rules – If you have specific rules (e.g., no base raiding), post them in the server description or on a Discord.
  • Use a mod launcher – For advanced PvP features (like custom loot or PvP zones), consider using a mod launcher like DMT (7 Days to Die Mod Launcher) to manage mods.

Troubleshooting

  • Server won’t start – Check the log file (usually log.txt in the server folder) for errors. Common causes: missing write permissions to the folder, or a corrupted download. Re-run the SteamCMD update with validate.
  • Players can’t join – Verify the server is reachable: use an online port checker to test if port 26900 is open. Ensure the server’s IP is correct (use your public IP for external players).
  • PvP not working – Confirm GameMode is set to 2 and PlayerKillingMode is set to your desired value. Restart the server after config changes.
  • High ping/lag – Check your server’s CPU/RAM usage. Reduce MaxPlayers or lower BloodMoonFrequency. Also, ensure the server is on a wired connection.
  • Server drops connections – Check the log for “timeout” errors. This often indicates network issues. Try disabling IPv6 or adjusting ServerMaxWorldTransferSpeedKiBs.

Frequently Asked Questions

Can I run a PvP server on the same machine I play on?

Yes, but it will use significant resources. You’ll need at least 8 GB RAM and a good CPU. Expect performance hits on both server and client.

How do I make zombies not attack players?

Set ZombieFavor to 0 in serverconfig.xml. This makes zombies ignore players, so the only threat is other players.

Can I change PvP settings without restarting the server?

No, most server settings are read at startup. You must edit the XML and restart the server for changes to take effect.

How do I ban a player from my PvP server?

Use the in-game console command ban [player name] or edit the banlist.xml file in the server folder. You can also use the web-based admin panel if enabled.

Is there a way to prevent base raiding?

Yes, you can set ClaimSize and ClaimDuration to make land claims stronger, or use mods that disable block damage in claimed areas.

What’s the difference between PlayerKillingMode 1 and 2?

Mode 1 allows killing only allies (players on the same team), while mode 2 allows killing everyone. Mode 3 allows killing strangers but not allies.

Related

Method: the standard formula for this calculation, rounded as each result states. See how the calculators work or report an error.