Smart Systems for Home

Plain how-to guides for smart home, security and home Wi-Fi

Days to Die Server Closed Connection Error Fixes

· 5 min read · Home Tech

In this article
  1. What Causes the Error
  2. Quick Fixes to Try First
  3. Adjusting Network Settings
  4. Firewall and Antivirus Exceptions
  5. Server-Side Troubleshooting
  6. Advanced Solutions
  7. Frequently Asked Questions

The "Server closed the connection" error in Days to Die typically occurs when your client loses contact with the game server, often due to network timeouts, corrupted local data, or server-side issues. Fixes range from verifying game files and adjusting network settings to checking server mods and firewall rules.

What Causes the Error

This error is not a single fault but a symptom of several possible problems. The most common causes include:

  • Network timeouts: The connection between your client and the server drops due to high latency, packet loss, or a temporary network blip.
  • Corrupted game files: A damaged installation can cause the client to crash or disconnect when loading specific assets.
  • Server-side issues: The server may be overloaded, restarting, or running an incompatible mod that causes it to kick clients.
  • Firewall or antivirus interference: Security software can block the game's ports, causing the connection to be severed.
  • Outdated game version: If your client and server versions differ, the connection may be rejected.

Quick Fixes to Try First

Before diving into more complex solutions, try these basic steps. They resolve a large percentage of connection errors:

  1. Restart the game and the server: Close Days to Die completely, then relaunch it. If you control the server, restart it as well.
  2. Check for game updates: Ensure both your client and server are running the same version. In Steam, right-click the game, select Properties, then Updates.
  3. Verify game files: In Steam, right-click Days to Die, go to Properties > Local Files > Verify Integrity of Game Files. This will re-download any corrupted files.
  4. Restart your router: Power-cycle your modem and router to clear any temporary network issues.

Adjusting Network Settings

If the error persists, the issue may be with your network configuration. Days to Die uses UDP ports 26900-26902 for dedicated servers. Ensure these ports are open in your router's firewall. Additionally, you can try the following:

  • Disable IPv6: Some players have found that disabling IPv6 on their network adapter resolves the error. You can do this in Windows by going to Control Panel > Network and Sharing Center > Change adapter settings, right-clicking your adapter, selecting Properties, and unchecking Internet Protocol Version 6 (TCP/IPv6).
  • Change DNS servers: Switching to a public DNS like Google (8.8.8.8) or Cloudflare (1.1.1.1) can help if your ISP's DNS is causing issues.
  • Lower network quality settings: In the game's options, under Video, you can set Network Quality to Lower. This reduces bandwidth usage and may prevent timeouts.

Firewall and Antivirus Exceptions

Windows Defender or third-party antivirus software can sometimes block the game's network traffic, causing the server to close the connection. To fix this:

  1. Open Windows Defender Firewall (or your antivirus settings).
  2. Click on "Allow an app or feature through Windows Defender Firewall."
  3. Find Days to Die in the list and ensure both Private and Public boxes are checked. If it's not listed, click "Allow another app" and browse to the game's executable (usually in Steam\steamapps\common\7 Days To Die).
  4. If you use a third-party antivirus, add an exception for the game's folder and executable.

Server-Side Troubleshooting

If you are hosting a dedicated server, the issue may be on your server's end. Check the server's log files for errors. Common server-side fixes include:

  • Update the server: Make sure the server is running the latest stable build. Incompatible mods or outdated builds can cause disconnects.
  • Remove mods temporarily: If you have mods installed, try removing them and connecting again. A mod may be causing the server to crash or kick players.
  • Increase server timeout settings: In the serverconfig.xml file, you can adjust the ServerMaxWorldTransferSpeed and ServerMaxPlayerCount settings. Lowering the max player count can reduce server load.
  • Check server performance: If the server's CPU or RAM usage is at 100%, it may be unable to maintain connections. Consider upgrading your hosting plan or reducing the world size.

Advanced Solutions

If none of the above work, try these more advanced steps:

  • Reset your network stack: Open Command Prompt as Administrator and run netsh winsock reset and netsh int ip reset, then restart your computer.
  • Reinstall the game: Uninstall Days to Die, then delete the remaining folder in Steam\steamapps\common. Also delete the game's save data in %AppData%\7DaysToDie. Then reinstall.
  • Check for ISP throttling: Some internet service providers throttle gaming traffic. Using a VPN can sometimes bypass this, but it may also increase latency.
  • Try a different server: If the error only occurs on one specific server, the problem is likely with that server. Try joining another server to confirm.

Frequently Asked Questions

Why does the error say "Server closed the connection" but I can join other servers?

This usually indicates the issue is specific to that server. It could be a server-side mod conflict, the server is at max capacity, or the server's IP/port is not reachable from your network. Try joining a different server to confirm your client is fine.

Does the error happen more often on modded servers?

Yes, modded servers are more prone to this error because mods can introduce bugs or incompatibilities. If you frequently play on modded servers, ensure the mods are updated to match the game version. If the error occurs, try joining the server without mods to see if it persists.

Can a slow internet connection cause this error?

Yes, a slow or unstable connection can cause timeouts. The game requires a stable connection to maintain the game state. If your ping is consistently high or you have packet loss, you may experience disconnects. Try using a wired connection instead of Wi-Fi.

Is there a way to prevent this error from happening?

While no method is 100% foolproof, keeping your game updated, verifying files regularly, and ensuring your firewall allows the game are the best preventive measures. For server owners, regular server maintenance and avoiding unstable mods will reduce occurrences.

What should I do if the error occurs on a dedicated server I rent?

Contact your hosting provider's support. They can check server logs and hardware performance. Often, they can restart the server or adjust settings that you may not have access to. If the issue persists, consider moving to a different provider.