Valheim Server Troubleshooting Guide
Comprehensive guide to diagnosing and fixing common Valheim dedicated server issues. From connection problems to performance bottlenecks, this guide provides step-by-step solutions for server administrators.
Quick Tip: Most Valheim server issues can be resolved by checking port forwarding, verifying server configuration, and ensuring all players have the same game version.
Common Connection Issues
1. "Failed to Connect" Error
Symptoms:
- Players cannot connect to server
- "Failed to connect" message appears
- Server shows in browser but connection times out
Solutions:
- Check Port Forwarding: Ensure ports 2456-2458 (TCP/UDP) are properly forwarded on your router.
- Verify Firewall Settings: Add exceptions for Valheim server executable in Windows Firewall or configure iptables on Linux.
- Test Local Connection: Try connecting from a device on the same network to rule out internet issues.
- Check Server Status: Verify the server process is running with
netstat -tulpn | grep 2456(Linux) or Resource Monitor (Windows).
2. Server Not Showing in Browser
Symptoms:
- Server doesn't appear in Steam server browser
- Direct IP connection works but browser doesn't show server
- Server visibility set to "Public" but not listed
Solutions:
- Enable Steam Networking: Ensure
-public 1is set in server arguments. - Check Query Port: Verify port 2457 is open and accessible (used for Steam queries).
- Wait for Registration: Steam server browser can take 5-15 minutes to register new servers.
- Use Steam Console: Type
openserverbrowserin Steam client console to refresh browser.
Performance Problems
3. Server Lag, Desync, and High Ping
Symptoms:
- Delayed player actions and movements
- High ping for all connected players
- World saving causes temporary freezes
- Players see different states (doors open/closed, items in different positions)
- NPCs or players "skipping" across the screen
Understanding the Root Cause:
Valheim uses a "Peer-to-Peer within Dedicated Server" hybrid model. Physics calculations are done client-side, and the first player to enter an area becomes the "Zone Owner" responsible for synchronizing that zone. If that player has poor connectivity, everyone in that zone experiences issues.
Solutions:
- Zone Owner Strategy: Have the player with the best connection lead the group into bases and new areas.
- Install Better Networking mod: This mod increases data rate limits and adds compression. See our Better Networking guide.
- Use Wired Connection: Switch from WiFi to Ethernet - this alone fixes many desync issues.
- Lower Steam Pings: In Steam Settings → In-Game, reduce "In-game server browser pings per minute" from 5000 to 250.
- Disable Crossplay: If all players are on Steam, disable crossplay for better performance.
- Reduce Building Density: Large bases with 5000+ pieces overwhelm the 64KB/sec data cap.
- Optimize Save Interval: Increase
-saveintervalto 1800+ seconds for large worlds.
Ashlands Warning: The Ashlands biome sends significantly more data than other biomes. Expect performance issues in Ashlands, especially in multiplayer. Use Better Networking and limit concurrent players in this zone.
4. High CPU/Memory Usage
Symptoms:
- Server process using excessive CPU (90%+)
- Memory usage constantly increasing
- Server becomes unresponsive over time
Solutions:
- Limit Player Count: Reduce
-playerssetting to match server capabilities. - Disable Console: Remove
-consoleargument if not needed. - Regular Restarts: Schedule daily server restarts to clear memory leaks.
- Monitor with Tools: Use
htop(Linux) or Task Manager (Windows) to identify resource hogs.
World and Save Issues
5. World Corruption or Data Loss
Symptoms:
- World fails to load
- Characters or structures missing
- "Failed to load world" error message
Solutions:
- Restore from Backup: Use Supercraft's automated backups or manual
.oldbackup files. - Verify File Permissions: Ensure server has write access to world save directory.
- Check Disk Space: Ensure adequate free space for world saves (minimum 500MB).
- World Repair Tools: Consider using community tools like Valheim World Editor for recovery.
6. Character Data Issues
Symptoms:
- Character items missing after server transfer
- Skills reset or decreased
- Character file corruption errors
Solutions:
- Backup Character Files: Regularly backup
charactersfolder from server. - Use Consistent World Names: Character data is tied to specific world names.
- Avoid Cross-Server Transfers: Character files may not be compatible between different server configurations.
- Manual Restoration: Replace corrupted
.fchfiles with backups.
7. World Not Saving / Losing Progress
Symptoms:
- Progress lost after server restart
- World reverts to earlier state
- Buildings or items disappear
- "World Saved" message never appears
Understanding the Issue:
Dedicated servers autosave every 30 minutes by default. If the server shuts down ungracefully, all progress since the last autosave is lost.
Solutions:
- Force Save Before Shutdown: As an admin, press F5, type
save, and wait for "World Saved" message before stopping the server. - Check Save Folder Location: After updates, Iron Gate moved saves from
worldstoworlds_local. Ensure your server points to the correct folder. - Verify Write Permissions: Ensure the server process has write access to the save directory.
- Check Disk Space: Insufficient disk space prevents saving. Maintain at least 500MB free.
- Avoid File Conflicts: Never run client and server on the same world file simultaneously.
- Check for Read-Only Files: Ensure
.dband.fwlfiles are not marked read-only.
Save File Migration (Post-Update Fix):
# If world disappeared after update:
# 1. Backup both folders first!
# 2. Copy files from old to new location:
cp ~/.config/unity3d/IronGate/Valheim/worlds/YOURWORLD.* \
~/.config/unity3d/IronGate/Valheim/worlds_local/
Crossplay-Specific Issues
8. Steam and Xbox Players Can't Connect
Symptoms:
- Xbox/Game Pass players cannot see or join Steam-hosted games
- "Unable to join crossplay game" error
- Connection works for some platforms but not others
Solutions:
- Enable Crossplay Flag: Add
-crossplayto server launch parameters. - Use Join Codes: Steam and Xbox players should use the Join Code from the pause menu rather than server browser.
- Install VC Redist: Steam doesn't install VC Redist 2015-2022 with Valheim. Download from Microsoft.
- Check Parental Controls: Xbox parental controls may block crossplay features.
- Dedicated Server Required: Steam and Game Pass PC players cannot join each other's games directly - use a dedicated server.
Important: Game Pass players cannot disable crossplay - they must always use crossplay-enabled servers. Game-changing mods (like Epic Loot) will desync and crash Xbox clients. Run vanilla servers for full crossplay compatibility.
Mod-Related Problems
9. Mod Compatibility Issues
Symptoms:
- Server crashes on startup with mods enabled
- Players cannot connect due to mod mismatch
- Game features broken after mod installation
Solutions:
- Verify Mod Versions: Ensure all mods are updated to latest versions compatible with Valheim version.
- Check Load Order: Some mods require specific load order in
doorstop_config.ini. - Test Mods Individually: Disable all mods, then enable one at a time to identify conflicts.
- Use BepInEx Logs: Check
BepInEx/LogOutput.logfor mod loading errors.
10. BepInEx Installation Problems
Symptoms:
- Mods not loading despite BepInEx installation
- Server starts but mod functionality missing
- BepInEx console not showing on server start
Solutions:
- Verify Installation Path: BepInEx files should be in Valheim root directory, not subfolders.
- Check File Permissions: Ensure server has execute permission for BepInEx executables.
- Update BepInEx: Use latest BepInEx version compatible with server Valheim version.
- Review Configuration: Check
BepInEx/config/BepInEx.cfgfor correct settings.
Network and Firewall Configuration
# Required Ports for Valheim Server
Port 2456 (TCP/UDP) - Game traffic
Port 2457 (TCP/UDP) - Steam query
Port 2458 (TCP/UDP) - Additional game traffic
# Linux iptables rules
sudo iptables -A INPUT -p udp --dport 2456:2458 -j ACCEPT
sudo iptables -A INPUT -p tcp --dport 2456:2458 -j ACCEPT
# Windows Firewall PowerShell
New-NetFirewallRule -DisplayName "Valheim 2456-2458" -Direction Inbound -Protocol TCP -LocalPort 2456-2458 -Action Allow
New-NetFirewallRule -DisplayName "Valheim 2456-2458 UDP" -Direction Inbound -Protocol UDP -LocalPort 2456-2458 -Action Allow
Diagnostic Commands and Tools
Server Console Commands
# Check server status
netstat -tulpn | grep valheim
# Monitor server process
top -p $(pgrep valheim)
# View server logs (Linux)
tail -f ~/.config/unity3d/IronGate/Valheim/server.log
# Test network connectivity
nc -zv your_server_ip 2456
nc -zv your_server_ip 2457
Client-Side Diagnostics
- Steam Network Diagnostics: Steam → Settings → Downloads → Clear Download Cache
- Verify Game Files: Steam Library → Valheim → Properties → Local Files → Verify Integrity
- Check Firewall: Ensure Valheim client is allowed through Windows Defender Firewall
- Update Network Drivers: Ensure network adapter drivers are up to date
Preventative Measures
Best Practices to Avoid Issues:
- Regular Backups: Schedule automated daily backups of world and character data.
- Update Management: Test game updates on a staging server before deploying to production.
- Monitor Resources: Use monitoring tools to track CPU, memory, and disk usage.
- Document Configuration: Keep records of server settings, mod lists, and custom changes.
- Community Communication: Inform players of scheduled maintenance and updates.
When to Seek Help
If you've tried all troubleshooting steps and still experience issues:
- Check Official Channels: Valheim Discord server, IronGate support forums
- Community Resources: Reddit r/valheim, Valheim community wiki
- Hosting Provider: Contact Supercraft support for dedicated server assistance
- Log Collection: Gather server logs, client logs, and error messages before seeking help
Final Tip: Most Valheim server issues are solvable with patience and systematic troubleshooting. Start with basic connectivity checks before moving to complex configuration changes.
Need professional Valheim server hosting with automated troubleshooting? Launch your Valheim server with Supercraft for optimized performance and 24/7 support.