Enhanced documentation for Valheim and ARK servers with comprehensive guides

Co-authored-by: iaretechnician <2749183+iaretechnician@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot] 2025-11-09 21:01:31 +00:00
parent 5dd60687fd
commit 4235b6c9ee
2 changed files with 584 additions and 90 deletions

View file

@ -1,68 +1,304 @@
<?php
/**
* ARK:SE Server Documentation
* ARK: Survival Evolved - Comprehensive Hosting Guide
* General game server hosting information (not platform-specific)
*/
?>
<h1>ARK:SE Server Guide</h1>
<h2>Overview</h2>
<p><strong>ARK:SE</strong> is available for hosting on our platform. This guide covers the basics of setting up and managing your ARK:SE server.</p>
<div style="background: #1e3a5f; padding: 20px; border-left: 4px solid #3b82f6; margin: 20px 0; border-radius: 4px;">
<h3 style="color: #ffffff; margin-top: 0;">Server Information</h3>
<ul style="color: #e5e7eb; line-height: 1.8;">
<li><strong style="color: #ffffff;">Default Port:</strong> <code style="background: #0f172a; padding: 2px 6px; border-radius: 3px; color: #a5b4fc;">7777</code></li>
<li><strong style="color: #ffffff;">Protocol:</strong> UDP</li>
<li><strong style="color: #ffffff;">Additional Info:</strong> Query port is 27015 UDP, RCON 27020 TCP</li>
</ul>
<p style="color: #e5e7eb; margin-top: 12px; font-size: 0.95em;">
<em>Note: When running on a VPS or dedicated server, you can use the default port or configure a custom port in your server configuration file.</em>
</p>
<h3 style="color: #ffffff; margin-top: 0;">Navigation</h3>
<div style="display: flex; flex-wrap: wrap; gap: 10px;">
<a href="#quick-info" style="background: #0f172a; padding: 8px 16px; border-radius: 4px; color: #a5b4fc; text-decoration: none;">Quick Info</a>
<a href="#installation" style="background: #0f172a; padding: 8px 16px; border-radius: 4px; color: #a5b4fc; text-decoration: none;">Installation</a>
<a href="#configuration" style="background: #0f172a; padding: 8px 16px; border-radius: 4px; color: #a5b4fc; text-decoration: none;">Configuration</a>
<a href="#parameters" style="background: #0f172a; padding: 8px 16px; border-radius: 4px; color: #a5b4fc; text-decoration: none;">Parameters</a>
<a href="#troubleshooting" style="background: #0f172a; padding: 8px 16px; border-radius: 4px; color: #a5b4fc; text-decoration: none;">Troubleshooting</a>
<a href="#performance" style="background: #0f172a; padding: 8px 16px; border-radius: 4px; color: #a5b4fc; text-decoration: none;">Performance</a>
</div>
</div>
<h2>Getting Started</h2>
<p>To create a ARK:SE server:</p>
<ol>
<li>Navigate to the <a href="/serverlist.php">Game Servers</a> page</li>
<li>Find <strong>ARK:SE</strong> in the list</li>
<li>Select your preferred configuration (slots, duration, etc.)</li>
<li>Add to cart and complete checkout</li>
<li>Your server will be automatically provisioned within minutes</li>
</ol>
<h1>ARK: Survival Evolved Dedicated Server Hosting Guide</h1>
<h2>Server Configuration</h2>
<p>After your server is created, you can configure it through the control panel:</p>
<h2>Overview</h2>
<p>ARK: Survival Evolved is a survival game where players must survive being stranded on an island filled with dinosaurs and other prehistoric animals, natural hazards, and potentially hostile human players. This comprehensive guide covers hosting an ARK: Survival Evolved dedicated server on a VPS or dedicated server.</p>
<h2 id="quick-info">Quick Info</h2>
<div style="background: #1e3a5f; padding: 20px; border-left: 4px solid #3b82f6; margin: 20px 0; border-radius: 4px;">
<ul style="color: #e5e7eb; line-height: 1.8; margin: 0;">
<li><strong style="color: #ffffff;">Game Port:</strong> <code style="background: #0f172a; padding: 2px 6px; border-radius: 3px; color: #a5b4fc;">7777</code> (UDP)</li>
<li><strong style="color: #ffffff;">Raw UDP Socket:</strong> <code style="background: #0f172a; padding: 2px 6px; border-radius: 3px; color: #a5b4fc;">7778</code> (UDP)</li>
<li><strong style="color: #ffffff;">Query Port:</strong> <code style="background: #0f172a; padding: 2px 6px; border-radius: 3px; color: #a5b4fc;">27015</code> (UDP)</li>
<li><strong style="color: #ffffff;">RCON Port:</strong> <code style="background: #0f172a; padding: 2px 6px; border-radius: 3px; color: #a5b4fc;">27020</code> (TCP, optional)</li>
<li><strong style="color: #ffffff;">Minimum RAM:</strong> 8-12GB (more for mods/high player count)</li>
<li><strong style="color: #ffffff;">Recommended CPU:</strong> Dual-core minimum, quad-core preferred</li>
<li><strong style="color: #ffffff;">Storage:</strong> 20-25GB minimum free space</li>
<li><strong style="color: #ffffff;">SteamCMD App ID:</strong> 346110</li>
<li><strong style="color: #ffffff;">Config Files:</strong> GameUserSettings.ini, Game.ini</li>
</ul>
</div>
<h2 id="installation">Installation & Setup</h2>
<h3>System Requirements</h3>
<ul>
<li>Server settings and parameters</li>
<li>Player slots and limits</li>
<li>RCON/remote control access</li>
<li>FTP file access</li>
<li><strong>OS:</strong> Windows Server 2016+ (64-bit) or Linux 64-bit (Ubuntu/Debian)</li>
<li><strong>CPU:</strong> Minimum dual-core; Recommended quad-core @ 3.0GHz+</li>
<li><strong>RAM:</strong> 8-12GB minimum; 16GB+ for modded/high-pop servers</li>
<li><strong>Storage:</strong> 20-25GB for base game; additional for mods and saves</li>
<li><strong>Network:</strong> 10Mbps+ upload recommended</li>
</ul>
<h2>Common Tasks</h2>
<h3>Installing via SteamCMD</h3>
<pre><code># Install SteamCMD first
# Windows: Download from https://steamcdn-a.akamaihd.net/client/installer/steamcmd.zip
# Linux:
sudo apt update
sudo apt install lib32gcc1 steamcmd
<h3>Starting Your Server</h3>
<p>Servers are automatically started after creation. You can stop/start your server from the control panel.</p>
# Create server directory
mkdir -p ~/arkserver
cd ~/arkserver
<h3>Connecting to Your Server</h3>
<p>Use your server's IP address and port to connect from the game client.</p>
# Download server files
steamcmd +login anonymous +force_install_dir ~/arkserver +app_update 346110 validate +exit
<h3>Managing Files</h3>
<p>Access your server files via FTP using the credentials provided in your control panel.</p>
# This will download approximately 20GB of files
</code></pre>
<h2>Support</h2>
<p>If you need assistance with your ARK:SE server:</p>
<h3>Windows Startup Script</h3>
<p>Create <code>ServerStart.bat</code> in <code>ShooterGame\Binaries\Win64\</code>:</p>
<pre><code>@echo off
start ShooterGameServer.exe "TheIsland?SessionName=MyARKServer?QueryPort=27015?ServerPassword=YOURPASSWORD?ServerAdminPassword=ADMINPASS?listen?Port=7777?MaxPlayers=20"
exit
</code></pre>
<h3>Linux Startup Script</h3>
<pre><code>#!/bin/bash
cd ~/arkserver/ShooterGame/Binaries/Linux
./ShooterGameServer TheIsland?listen?SessionName=MyARKServer?ServerPassword=YOURPASSWORD?ServerAdminPassword=ADMINPASS?QueryPort=27015?Port=7777?MaxPlayers=20 &gt; ~/arkserver.log 2&gt;&amp;1 &amp;
</code></pre>
<h2 id="configuration">Server Configuration</h2>
<h3>Configuration File Locations</h3>
<p><strong>Windows:</strong></p>
<pre><code>ShooterGame\Saved\Config\WindowsServer\GameUserSettings.ini
ShooterGame\Saved\Config\WindowsServer\Game.ini
</code></pre>
<p><strong>Linux:</strong></p>
<pre><code>ShooterGame/Saved/Config/LinuxServer/GameUserSettings.ini
ShooterGame/Saved/Config/LinuxServer/Game.ini
</code></pre>
<h3>GameUserSettings.ini - Key Settings</h3>
<pre><code>[ServerSettings]
ServerPassword=YourServerPassword
ServerAdminPassword=YourAdminPassword
ServerName=My ARK Server
MaxPlayers=20
DifficultyOffset=1.0
ServerPVE=False
AllowThirdPersonPlayer=True
ShowMapPlayerLocation=True
EnablePVPGamma=True
ServerCrosshair=True
RCONEnabled=True
RCONPort=27020
TheMaxStructuresInRange=10500
# XP and Progression
XPMultiplier=1.5
TamingSpeedMultiplier=3.0
HarvestAmountMultiplier=2.0
HarvestHealthMultiplier=1.5
ResourcesRespawnPeriodMultiplier=0.5
# Player Stats
PlayerCharacterWaterDrainMultiplier=1.0
PlayerCharacterFoodDrainMultiplier=1.0
PlayerCharacterStaminaDrainMultiplier=1.0
PlayerCharacterHealthRecoveryMultiplier=1.0
PlayerDamageMultiplier=1.0
PlayerResistanceMultiplier=1.0
# Dino Settings
DinoCharacterFoodDrainMultiplier=1.0
DinoCharacterStaminaDrainMultiplier=1.0
DinoCharacterHealthRecoveryMultiplier=1.0
DinoCountMultiplier=1.0
DinoResistanceMultiplier=1.0
DinoDamageMultiplier=1.0
</code></pre>
<h3>Available Maps</h3>
<p>Replace the map name in your startup command:</p>
<ul>
<li>Check our <a href="/docs.php?action=view&doc=common-issues">Common Issues</a> guide</li>
<li>Contact support through your account dashboard</li>
<li>Visit the official ARK:SE community for game-specific help</li>
<li><code>TheIsland</code> - Original ARK map</li>
<li><code>TheCenter</code> - Free expansion map</li>
<li><code>Ragnarok</code> - Free expansion map</li>
<li><code>Valguero</code> - Free expansion map</li>
<li><code>CrystalIsles</code> - Free expansion map</li>
<li><code>ScorchedEarth_P</code> - Paid DLC</li>
<li><code>Aberration_P</code> - Paid DLC</li>
<li><code>Extinction</code> - Paid DLC</li>
<li><code>Genesis</code> - Paid DLC</li>
</ul>
<h2 id="parameters">Startup Parameters</h2>
<h3>Command Line Options</h3>
<table style="width: 100%; border-collapse: collapse; margin: 20px 0;">
<tr style="background: #f8f9fa;">
<th style="padding: 10px; border: 1px solid #dee2e6; text-align: left;">Parameter</th>
<th style="padding: 10px; border: 1px solid #dee2e6; text-align: left;">Description</th>
</tr>
<tr>
<td style="padding: 8px; border: 1px solid #dee2e6;"><code>?SessionName=NAME</code></td>
<td style="padding: 8px; border: 1px solid #dee2e6;">Server name displayed in browser</td>
</tr>
<tr>
<td style="padding: 8px; border: 1px solid #dee2e6;"><code>?Port=7777</code></td>
<td style="padding: 8px; border: 1px solid #dee2e6;">Game port (default 7777)</td>
</tr>
<tr>
<td style="padding: 8px; border: 1px solid #dee2e6;"><code>?QueryPort=27015</code></td>
<td style="padding: 8px; border: 1px solid #dee2e6;">Steam query port</td>
</tr>
<tr>
<td style="padding: 8px; border: 1px solid #dee2e6;"><code>?ServerPassword=PASS</code></td>
<td style="padding: 8px; border: 1px solid #dee2e6;">Password to join server</td>
</tr>
<tr>
<td style="padding: 8px; border: 1px solid #dee2e6;"><code>?ServerAdminPassword=PASS</code></td>
<td style="padding: 8px; border: 1px solid #dee2e6;">Admin password for console</td>
</tr>
<tr>
<td style="padding: 8px; border: 1px solid #dee2e6;"><code>?MaxPlayers=20</code></td>
<td style="padding: 8px; border: 1px solid #dee2e6;">Maximum player slots</td>
</tr>
<tr>
<td style="padding: 8px; border: 1px solid #dee2e6;"><code>?ServerPVE=true</code></td>
<td style="padding: 8px; border: 1px solid #dee2e6;">Enable PVE mode</td>
</tr>
<tr>
<td style="padding: 8px; border: 1px solid #dee2e6;"><code>?AllowThirdPersonPlayer=true</code></td>
<td style="padding: 8px; border: 1px solid #dee2e6;">Allow third-person view</td>
</tr>
<tr>
<td style="padding: 8px; border: 1px solid #dee2e6;"><code>?listen</code></td>
<td style="padding: 8px; border: 1px solid #dee2e6;">Required for dedicated server</td>
</tr>
</table>
<h3>Port Forwarding Requirements</h3>
<pre><code># Forward these ports on your router/firewall:
UDP 7777 - Game Client Port
UDP 7778 - Raw UDP Socket
UDP 27015 - Steam Query Port
TCP 27020 - RCON (if enabled)
# Linux firewall (UFW):
sudo ufw allow 7777:7778/udp
sudo ufw allow 27015/udp
sudo ufw allow 27020/tcp
sudo ufw reload
</code></pre>
<h2 id="troubleshooting">Troubleshooting</h2>
<h3>Server Won't Start</h3>
<p><strong>Problem:</strong> Server fails to start or crashes immediately.</p>
<p><strong>Solutions:</strong></p>
<ul>
<li>Check log files in <code>ShooterGame/Saved/Logs/</code></li>
<li>Verify Visual C++ 2013 Redistributable is installed (Windows)</li>
<li>Ensure sufficient RAM and disk space</li>
<li>Validate server files: <code>steamcmd +login anonymous +app_update 346110 validate +exit</code></li>
<li>Check file permissions on Linux (<code>chmod +x</code> on server executable)</li>
</ul>
<h3>Cannot Connect to Server</h3>
<p><strong>Problem:</strong> Players cannot connect or server not visible in browser.</p>
<p><strong>Solutions:</strong></p>
<ul>
<li>Verify all ports are forwarded correctly (7777, 7778, 27015)</li>
<li>Check firewall rules allow traffic</li>
<li>Confirm QueryPort is set correctly and not in reserved range (27020-27050)</li>
<li>Try direct connect using IP:Port in Steam</li>
<li>Ensure server password is communicated correctly</li>
</ul>
<h3>High Resource Usage / Lag</h3>
<p><strong>Problem:</strong> Server uses excessive resources or experiences lag.</p>
<p><strong>Solutions:</strong></p>
<ul>
<li>Reduce max player count</li>
<li>Disable or reduce mods</li>
<li>Lower difficulty and resource multipliers</li>
<li>Upgrade server hardware (especially RAM)</li>
<li>Regular server restarts to clear memory</li>
<li>Clean up abandoned structures with admin commands</li>
</ul>
<h3>Mod Issues</h3>
<p><strong>Problem:</strong> Mods not loading or causing crashes.</p>
<p><strong>Solutions:</strong></p>
<ul>
<li>Update mods via Steam Workshop</li>
<li>Add mod IDs to GameUserSettings.ini: <code>ActiveMods=modid1,modid2</code></li>
<li>Ensure mod compatibility with current game version</li>
<li>Remove conflicting mods one at a time to identify culprit</li>
</ul>
<h2 id="performance">Performance Optimization</h2>
<h3>Recommended Server Settings</h3>
<ul>
<li><strong>Small Server (5-10 players):</strong> 8GB RAM, dual-core CPU</li>
<li><strong>Medium Server (10-20 players):</strong> 12-16GB RAM, quad-core CPU</li>
<li><strong>Large Server (20+ players):</strong> 16-32GB RAM, high-performance CPU</li>
</ul>
<h3>Admin Console Commands</h3>
<p>Enable admin: Press TAB, type <code>enablecheats ADMINPASSWORD</code></p>
<ul>
<li><code>SaveWorld</code> - Force save the game</li>
<li><code>DestroyWildDinos</code> - Respawn all wild dinosaurs</li>
<li><code>SetTimeOfDay HH:MM:SS</code> - Set time of day</li>
<li><code>admincheat KillPlayer PLAYERNAME</code> - Kill a player</li>
<li><code>admincheat BanPlayer PLAYERNAME</code> - Ban a player</li>
<li><code>admincheat Broadcast MESSAGE</code> - Server-wide message</li>
</ul>
<h3>Backup Strategy</h3>
<pre><code># Backup save files regularly
# Location: ShooterGame/Saved/SavedArks/
# Linux backup script:
#!/bin/bash
BACKUP_DIR="/path/to/backups"
DATE=$(date +%Y%m%d_%H%M%S)
cd ~/arkserver/ShooterGame/Saved
tar -czf $BACKUP_DIR/ark_backup_$DATE.tar.gz SavedArks/
# Keep only last 7 days
find $BACKUP_DIR -name "ark_backup_*.tar.gz" -mtime +7 -delete
</code></pre>
<h2>Additional Resources</h2>
<ul>
<li><a href="https://ark.fandom.com/wiki/Dedicated_server_setup" target="_blank">ARK Wiki - Dedicated Server Setup</a></li>
<li><a href="https://ark.wiki.gg/wiki/Server_configuration" target="_blank">ARK Official Wiki - Server Configuration</a></li>
<li><a href="https://steamcommunity.com/app/346110/discussions/" target="_blank">Steam Community Discussions</a></li>
<li><a href="https://www.reddit.com/r/playark/" target="_blank">r/playark - Community Support</a></li>
</ul>
<div style="background: #78350f; padding: 20px; border-left: 4px solid #f59e0b; margin: 20px 0; border-radius: 4px;">
<h3 style="color: #ffffff; margin-top: 0;"><i class="fas fa-exclamation-triangle" style="color: #fbbf24; margin-right: 8px;"></i>Important Notes</h3>
<ul style="color: #fef3c7; line-height: 1.8;">
<li>Always keep your server updated to the latest version</li>
<li>Make regular backups of your server configuration</li>
<li>Review and follow the game's End User License Agreement (EULA)</li>
<li>Always keep your server updated via SteamCMD to match client versions</li>
<li>Make regular automated backups of save files</li>
<li>Monitor resource usage and adjust player limits accordingly</li>
<li>Use strong admin passwords and protect RCON access</li>
<li>Test mods thoroughly before deploying to live server</li>
</ul>
</div>

View file

@ -1,68 +1,326 @@
<?php
/**
* Valheim Server Documentation
* Valheim Dedicated Server - Comprehensive Hosting Guide
* General game server hosting information (not platform-specific)
*/
?>
<h1>Valheim Server Guide</h1>
<h2>Overview</h2>
<p><strong>Valheim</strong> is available for hosting on our platform. This guide covers the basics of setting up and managing your Valheim server.</p>
<div style="background: #1e3a5f; padding: 20px; border-left: 4px solid #3b82f6; margin: 20px 0; border-radius: 4px;">
<h3 style="color: #ffffff; margin-top: 0;">Server Information</h3>
<ul style="color: #e5e7eb; line-height: 1.8;">
<li><strong style="color: #ffffff;">Default Port:</strong> <code style="background: #0f172a; padding: 2px 6px; border-radius: 3px; color: #a5b4fc;">2456</code></li>
<li><strong style="color: #ffffff;">Protocol:</strong> UDP</li>
<li><strong style="color: #ffffff;">Additional Info:</strong> Uses ports 2456-2457 UDP</li>
</ul>
<p style="color: #e5e7eb; margin-top: 12px; font-size: 0.95em;">
<em>Note: When running on a VPS or dedicated server, you can use the default port or configure a custom port in your server configuration file.</em>
</p>
<h3 style="color: #ffffff; margin-top: 0;">Navigation</h3>
<div style="display: flex; flex-wrap: wrap; gap: 10px;">
<a href="#quick-info" style="background: #0f172a; padding: 8px 16px; border-radius: 4px; color: #a5b4fc; text-decoration: none;">Quick Info</a>
<a href="#installation" style="background: #0f172a; padding: 8px 16px; border-radius: 4px; color: #a5b4fc; text-decoration: none;">Installation</a>
<a href="#configuration" style="background: #0f172a; padding: 8px 16px; border-radius: 4px; color: #a5b4fc; text-decoration: none;">Configuration</a>
<a href="#parameters" style="background: #0f172a; padding: 8px 16px; border-radius: 4px; color: #a5b4fc; text-decoration: none;">Parameters</a>
<a href="#troubleshooting" style="background: #0f172a; padding: 8px 16px; border-radius: 4px; color: #a5b4fc; text-decoration: none;">Troubleshooting</a>
<a href="#performance" style="background: #0f172a; padding: 8px 16px; border-radius: 4px; color: #a5b4fc; text-decoration: none;">Performance</a>
</div>
</div>
<h2>Getting Started</h2>
<p>To create a Valheim server:</p>
<ol>
<li>Navigate to the <a href="/serverlist.php">Game Servers</a> page</li>
<li>Find <strong>Valheim</strong> in the list</li>
<li>Select your preferred configuration (slots, duration, etc.)</li>
<li>Add to cart and complete checkout</li>
<li>Your server will be automatically provisioned within minutes</li>
</ol>
<h1>Valheim Dedicated Server Hosting Guide</h1>
<h2>Server Configuration</h2>
<p>After your server is created, you can configure it through the control panel:</p>
<h2>Overview</h2>
<p>Valheim is a brutal survival and exploration game for 1-10 players set in a procedurally-generated purgatory inspired by Viking culture. This comprehensive guide covers everything you need to know about hosting a Valheim dedicated server on a VPS or dedicated server.</p>
<h2 id="quick-info">Quick Info</h2>
<div style="background: #1e3a5f; padding: 20px; border-left: 4px solid #3b82f6; margin: 20px 0; border-radius: 4px;">
<ul style="color: #e5e7eb; line-height: 1.8; margin: 0;">
<li><strong style="color: #ffffff;">Default Ports:</strong> <code style="background: #0f172a; padding: 2px 6px; border-radius: 3px; color: #a5b4fc;">2456-2458</code> (UDP)</li>
<li><strong style="color: #ffffff;">Protocol:</strong> UDP (Steam connectivity)</li>
<li><strong style="color: #ffffff;">Minimum RAM:</strong> 4GB (Recommended: 8GB+)</li>
<li><strong style="color: #ffffff;">Recommended CPU:</strong> 2+ cores @ 3.5GHz (4+ for 5+ players)</li>
<li><strong style="color: #ffffff;">Storage:</strong> 5GB+ for game files, additional for worlds</li>
<li><strong style="color: #ffffff;">Max Players:</strong> 10 vanilla (higher with mods, may cause lag)</li>
<li><strong style="color: #ffffff;">SteamCMD App ID:</strong> 896660</li>
<li><strong style="color: #ffffff;">Startup Scripts:</strong> start_headless_server.bat (Windows) / start_server.sh (Linux)</li>
</ul>
</div>
<h2 id="installation">Installation & Setup</h2>
<h3>System Requirements</h3>
<ul>
<li>Server settings and parameters</li>
<li>Player slots and limits</li>
<li>RCON/remote control access</li>
<li>FTP file access</li>
<li><strong>OS:</strong> Windows Server 2016+ or Linux 64-bit (Ubuntu/Debian recommended)</li>
<li><strong>CPU:</strong> Minimum 2 cores @ 2.4GHz; Recommended 4+ cores @ 3.5GHz+</li>
<li><strong>RAM:</strong> 4GB minimum, 8GB recommended, 16GB for large groups</li>
<li><strong>Storage:</strong> 5GB+ for game files, allow extra for world saves and backups</li>
<li><strong>Network:</strong> 1Mbps minimum upload; 10Mbps+ recommended for stable gameplay</li>
<li><strong>Bandwidth:</strong> ~1Mbps per player; wired connection strongly recommended</li>
</ul>
<h2>Common Tasks</h2>
<h3>Installing via Steam (Windows)</h3>
<pre><code>1. Open Steam and go to your Library
2. Use the dropdown menu and check "Tools"
3. Locate "Valheim Dedicated Server" in the list
4. Click "Install" and choose installation directory
5. Wait for download to complete
</code></pre>
<h3>Starting Your Server</h3>
<p>Servers are automatically started after creation. You can stop/start your server from the control panel.</p>
<h3>Installing via SteamCMD (Linux/Windows)</h3>
<pre><code># Install SteamCMD first (if not already installed)
# Ubuntu/Debian:
sudo apt update
sudo apt install steamcmd
<h3>Connecting to Your Server</h3>
<p>Use your server's IP address and port to connect from the game client.</p>
# Create server directory
mkdir -p ~/valheim-server
cd ~/valheim-server
<h3>Managing Files</h3>
<p>Access your server files via FTP using the credentials provided in your control panel.</p>
# Download server files
steamcmd +login anonymous +force_install_dir ~/valheim-server +app_update 896660 validate +exit
<h2>Support</h2>
<p>If you need assistance with your Valheim server:</p>
# The server files will be downloaded to your specified directory
</code></pre>
<h3>First-Time Setup</h3>
<p>Before starting your server for the first time, you'll need to configure the startup parameters.</p>
<h2 id="configuration">Server Configuration</h2>
<h3>Startup Scripts</h3>
<p>Valheim uses startup scripts to configure the server. Edit the appropriate file for your OS:</p>
<h4>Windows: start_headless_server.bat</h4>
<pre><code>@echo off
set SteamAppId=892970
valheim_server.exe -nographics -batchmode ^
-name "MyValheimServer" ^
-port 2456 ^
-world "MyWorld" ^
-password "MyPassword123" ^
-public 1
</code></pre>
<h4>Linux: start_server.sh</h4>
<pre><code>#!/bin/bash
export SteamAppId=892970
./valheim_server.x86_64 -nographics -batchmode \
-name "MyValheimServer" \
-port 2456 \
-world "MyWorld" \
-password "MyPassword123" \
-public 1 \
-logfile /path/to/valheim.log
</code></pre>
<h3>Admin Configuration Files</h3>
<p>Create these files in the server directory to manage administrators, bans, and whitelists:</p>
<h4>adminlist.txt</h4>
<pre><code># Add Steam64 IDs (one per line)
76561198012345678
76561198087654321
</code></pre>
<h4>bannedlist.txt</h4>
<pre><code># Add Steam64 IDs of banned players
76561198099999999
</code></pre>
<h4>permittedlist.txt</h4>
<pre><code># For whitelist mode - only these IDs can join
76561198012345678
76561198087654321
</code></pre>
<h2 id="parameters">Startup Parameters</h2>
<h3>Essential Parameters</h3>
<table style="width: 100%; border-collapse: collapse; margin: 20px 0;">
<tr style="background: #f8f9fa;">
<th style="padding: 10px; border: 1px solid #dee2e6; text-align: left;">Parameter</th>
<th style="padding: 10px; border: 1px solid #dee2e6; text-align: left;">Description</th>
<th style="padding: 10px; border: 1px solid #dee2e6; text-align: left;">Example</th>
</tr>
<tr>
<td style="padding: 8px; border: 1px solid #dee2e6;"><code>-name</code></td>
<td style="padding: 8px; border: 1px solid #dee2e6;">Server name (appears in browser)</td>
<td style="padding: 8px; border: 1px solid #dee2e6;">"My Valheim Server"</td>
</tr>
<tr>
<td style="padding: 8px; border: 1px solid #dee2e6;"><code>-port</code></td>
<td style="padding: 8px; border: 1px solid #dee2e6;">Server port (default 2456)</td>
<td style="padding: 8px; border: 1px solid #dee2e6;">2456</td>
</tr>
<tr>
<td style="padding: 8px; border: 1px solid #dee2e6;"><code>-world</code></td>
<td style="padding: 8px; border: 1px solid #dee2e6;">World/save name</td>
<td style="padding: 8px; border: 1px solid #dee2e6;">"Midgard"</td>
</tr>
<tr>
<td style="padding: 8px; border: 1px solid #dee2e6;"><code>-password</code></td>
<td style="padding: 8px; border: 1px solid #dee2e6;">Server password (required)</td>
<td style="padding: 8px; border: 1px solid #dee2e6;">"SecurePass123"</td>
</tr>
<tr>
<td style="padding: 8px; border: 1px solid #dee2e6;"><code>-public</code></td>
<td style="padding: 8px; border: 1px solid #dee2e6;">1=Public listing, 0=Private</td>
<td style="padding: 8px; border: 1px solid #dee2e6;">1</td>
</tr>
<tr>
<td style="padding: 8px; border: 1px solid #dee2e6;"><code>-savedir</code></td>
<td style="padding: 8px; border: 1px solid #dee2e6;">Custom save directory path</td>
<td style="padding: 8px; border: 1px solid #dee2e6;">"/path/to/saves"</td>
</tr>
<tr>
<td style="padding: 8px; border: 1px solid #dee2e6;"><code>-logfile</code></td>
<td style="padding: 8px; border: 1px solid #dee2e6;">Path to log file</td>
<td style="padding: 8px; border: 1px solid #dee2e6;">"/var/log/valheim.log"</td>
</tr>
<tr>
<td style="padding: 8px; border: 1px solid #dee2e6;"><code>-nographics</code></td>
<td style="padding: 8px; border: 1px solid #dee2e6;">Run headless (no GUI)</td>
<td style="padding: 8px; border: 1px solid #dee2e6;">Required for dedicated servers</td>
</tr>
<tr>
<td style="padding: 8px; border: 1px solid #dee2e6;"><code>-batchmode</code></td>
<td style="padding: 8px; border: 1px solid #dee2e6;">Run in batch mode</td>
<td style="padding: 8px; border: 1px solid #dee2e6;">Required for dedicated servers</td>
</tr>
</table>
<h3>Port Forwarding</h3>
<p>You must forward/open the following ports on your firewall:</p>
<ul>
<li>Check our <a href="/docs.php?action=view&doc=common-issues">Common Issues</a> guide</li>
<li>Contact support through your account dashboard</li>
<li>Visit the official Valheim community for game-specific help</li>
<li><strong>UDP 2456:</strong> Main game port (also set with -port parameter)</li>
<li><strong>UDP 2457:</strong> Secondary port (2456 + 1)</li>
<li><strong>UDP 2458:</strong> Tertiary port (2456 + 2)</li>
</ul>
<h4>Linux Firewall (UFW)</h4>
<pre><code># Allow Valheim ports
sudo ufw allow 2456:2458/udp
sudo ufw reload
</code></pre>
<h4>Windows Firewall</h4>
<pre><code># Open Windows Defender Firewall with Advanced Security
# Create new Inbound Rules for UDP ports 2456-2458
# Or use PowerShell:
New-NetFirewallRule -DisplayName "Valheim Server" -Direction Inbound -Protocol UDP -LocalPort 2456-2458 -Action Allow
</code></pre>
<h2 id="troubleshooting">Troubleshooting</h2>
<h3>Server Won't Start</h3>
<p><strong>Problem:</strong> Server fails to start or crashes immediately.</p>
<p><strong>Solutions:</strong></p>
<ul>
<li>Check log files for error messages</li>
<li>Verify all parameters are correctly formatted in startup script</li>
<li>Ensure server files are fully downloaded (run SteamCMD validate)</li>
<li>Check file permissions on Linux (<code>chmod +x start_server.sh</code>)</li>
<li>Verify you have sufficient RAM and disk space</li>
</ul>
<h3>Server Not Appearing in Browser</h3>
<p><strong>Problem:</strong> Server doesn't show up in the in-game server list.</p>
<p><strong>Solutions:</strong></p>
<ul>
<li>Ensure <code>-public 1</code> is set in startup parameters</li>
<li>Check that ports 2456-2458 UDP are properly forwarded</li>
<li>Verify firewall rules allow the ports</li>
<li>Try connecting directly using IP:port in Steam server list</li>
<li>Wait a few minutes - it can take time to appear in the browser</li>
</ul>
<h3>Connection Issues</h3>
<p><strong>Problem:</strong> Players cannot connect to the server.</p>
<p><strong>Solutions:</strong></p>
<ul>
<li>Double-check password is correct and communicated to players</li>
<li>Verify port forwarding is configured correctly</li>
<li>Test with the public IP address, not local/LAN IP</li>
<li>Check router NAT type and consider DMZ if necessary</li>
<li>Disable any VPN on the server</li>
</ul>
<h3>Lag and Performance Issues</h3>
<p><strong>Problem:</strong> Server experiences lag, stuttering, or poor performance.</p>
<p><strong>Solutions:</strong></p>
<ul>
<li>Reduce player count if exceeding 5-10 players</li>
<li>Upgrade server hardware (CPU and RAM)</li>
<li>Use wired Ethernet connection, not WiFi</li>
<li>Close unnecessary background processes</li>
<li>Consider professional hosting for high-population servers</li>
<li>Keep the world size manageable (large explored worlds can lag)</li>
</ul>
<h3>World/Save Corruption</h3>
<p><strong>Problem:</strong> World save is corrupted or progress is lost.</p>
<p><strong>Solutions:</strong></p>
<ul>
<li>Restore from backup (make regular backups!)</li>
<li>Check disk health and fix errors</li>
<li>Avoid forced shutdowns or crashes</li>
<li>Use a reliable backup system (automated backups recommended)</li>
</ul>
<h2 id="performance">Performance Optimization</h2>
<h3>Server Resource Management</h3>
<ul>
<li><strong>RAM:</strong> Allocate 8GB+ for smoother experience with multiple players</li>
<li><strong>CPU:</strong> Higher single-core performance is more important than core count</li>
<li><strong>Storage:</strong> Use SSD for better world loading performance</li>
<li><strong>Network:</strong> Minimum 10Mbps upload for 5+ players</li>
</ul>
<h3>Backup Strategy</h3>
<pre><code># Linux backup script example
#!/bin/bash
WORLD_NAME="MyWorld"
BACKUP_DIR="/path/to/backups"
DATE=$(date +%Y%m%d_%H%M%S)
# Create backup
cp ~/.config/unity3d/IronGate/Valheim/worlds/$WORLD_NAME.* $BACKUP_DIR/
# Keep only last 7 days of backups
find $BACKUP_DIR -name "*.fwl" -mtime +7 -delete
find $BACKUP_DIR -name "*.db" -mtime +7 -delete
</code></pre>
<h3>Automated Restarts</h3>
<p>Set up daily restarts to clear memory and apply updates:</p>
<pre><code># Linux crontab entry for 4 AM restart
0 4 * * * /path/to/restart_valheim.sh
# restart_valheim.sh:
#!/bin/bash
pkill -9 valheim_server
sleep 10
cd /home/valheim/server
./start_server.sh &amp;
</code></pre>
<h3>Console Commands (In-Game Admin)</h3>
<p>Enable console with <code>-console</code> parameter, press F5 in-game:</p>
<ul>
<li><code>devcommands</code> - Enable admin commands</li>
<li><code>kick [player name]</code> - Kick a player</li>
<li><code>ban [player name]</code> - Ban a player</li>
<li><code>unban [player name]</code> - Unban a player</li>
<li><code>save</code> - Force save the world</li>
<li><code>resetskill [skill]</code> - Reset player skill level</li>
</ul>
<h2>Additional Resources</h2>
<ul>
<li><a href="https://valheim.com/support/a-guide-to-dedicated-servers/" target="_blank">Official Valheim Dedicated Server Guide</a></li>
<li><a href="https://valheim.fandom.com/wiki/Dedicated_servers" target="_blank">Valheim Wiki - Dedicated Servers</a></li>
<li><a href="https://steamcommunity.com/app/892970/discussions/" target="_blank">Steam Community Discussions</a></li>
<li><a href="https://www.reddit.com/r/valheim/" target="_blank">r/valheim - Community Support</a></li>
</ul>
<div style="background: #78350f; padding: 20px; border-left: 4px solid #f59e0b; margin: 20px 0; border-radius: 4px;">
<h3 style="color: #ffffff; margin-top: 0;"><i class="fas fa-exclamation-triangle" style="color: #fbbf24; margin-right: 8px;"></i>Important Notes</h3>
<ul style="color: #fef3c7; line-height: 1.8;">
<li>Always keep your server updated to the latest version</li>
<li>Make regular backups of your server configuration</li>
<li>Review and follow the game's End User License Agreement (EULA)</li>
<li>Always keep your server updated to the latest version via SteamCMD</li>
<li>Make regular automated backups of your world saves</li>
<li>Test firewall rules and port forwarding before inviting players</li>
<li>Monitor server performance and adjust resources as needed</li>
<li>Use strong passwords to protect your server</li>
</ul>
</div>