Operations
How to Keep a Home Game Server Online 24/7
Make a Windows game server survive reboots and crashes: power settings, start at boot, a restart-on-crash script, Windows Update, a UPS, and scheduled backups.
A home game server will not run forever on its own. Windows reboots for updates, the power blips, the game crashes, and a patch lands that needs a restart. “24/7” in practice means the server comes back by itself when any of those happen, and your saves are safe when it does.
This guide sets up that for ASA and Palworld on Windows, with these layers: power settings, starting at boot, restarting on a crash, controlling Windows Update, surviving a power cut, and backing up on a schedule. The scripts assume the folders from the main guides: C:\steamcmd, C:\asa-server, and C:\palserver.
1. Stop Windows sleeping
A sleeping server is an offline server. In an Administrator Command Prompt or PowerShell window:
powercfg /change standby-timeout-ac 0
powercfg /change hibernate-timeout-ac 0
powercfg /change monitor-timeout-ac 0
A value of 0 means never. The monitor line is optional; it only keeps the screen on, which you may not want. On a laptop, also set the lid-close action to “Do nothing” under Control Panel > Power Options > Choose what closing the lid does.
2. Come back after a power cut
Most PCs stay off after power returns unless you tell the BIOS otherwise. Reboot into the BIOS or UEFI setup (usually by pressing Del or F2 at power-on) and look for a setting named something like Restore on AC Power Loss, AC Back, or After Power Failure. Set it to Power On. The name and location varies by manufacturer, so check your board’s manual.
3. Control Windows Update restarts
Windows will restart itself for updates. You cannot and should not stop it entirely, because an unpatched PC on the internet is a risk. Instead, choose when:
- Open Settings > Windows Update > Advanced options and set Active hours to the hours your friends play, so restarts do not land then.
- Pick a weekly low-traffic time to run updates and reboot on purpose. A planned reboot is better than a surprise one.
- Everything below is designed so a restart at any time is survivable.
4. Start the server at boot with Task Scheduler
A server that only starts when you log in dies on every reboot. Task Scheduler can start it with no one logged in, the same method the ARK wiki documents for Windows.
- Open Task Scheduler and choose Create Task (not “Basic Task”).
- General tab: give it a name such as
ASA server. Select Run whether user is logged on or not, and tick Run with highest privileges. - Triggers tab: New, then Begin the task: At startup. Add a delay of 1 minute so the network is ready.
- Actions tab: New, Start a program, and enter the full path to your script, such as
C:\asa-server\watchdog.bat(built below). Set Start in to the script’s folder, for exampleC:\asa-server. - Settings tab: untick Stop the task if it runs longer than.
- Save. Windows will ask for your account password so it can run the task while you are logged out.
Create a second task for Palworld in the same way.
Because the task runs hidden, you will not see a console window. That is why the scripts below write to a log file.
5. Restart on crash, update, and a clean stop
This script starts the server, and if it ever exits or crashes, waits a moment and starts it again. It also runs a SteamCMD update before every launch, so a restart after a game patch picks up the new version automatically.
Save as C:\asa-server\watchdog.bat:
@echo off
setlocal
set "INSTALL=C:\asa-server"
set "STOPFLAG=%INSTALL%\stop.flag"
set "LOG=%INSTALL%\watchdog.log"
:loop
if exist "%STOPFLAG%" (
echo %date% %time% stop.flag found, exiting >> "%LOG%"
exit /b 0
)
echo %date% %time% updating >> "%LOG%"
C:\steamcmd\steamcmd.exe +force_install_dir %INSTALL% +login anonymous +app_update 2430930 validate +quit >> "%LOG%" 2>&1
echo %date% %time% starting server >> "%LOG%"
cd /d %INSTALL%\ShooterGame\Binaries\Win64
ArkAscendedServer.exe TheIsland_WP?listen?SessionName=MyHomeServer?ServerPassword=ChangeThisJoinPassword?ServerAdminPassword=ChangeThisAdminPassword -port=7777 -WinLiveMaxPlayers=20
echo %date% %time% server exited with code %errorlevel% >> "%LOG%"
ping -n 31 127.0.0.1 >nul
goto loop
Use your own start line from the ASA guide in place of the ArkAscendedServer.exe line. Keep the order of the options.
Palworld’s version is the same shape. Save as C:\palserver\watchdog.bat:
@echo off
setlocal
set "INSTALL=C:\palserver"
set "STOPFLAG=%INSTALL%\stop.flag"
set "LOG=%INSTALL%\watchdog.log"
:loop
if exist "%STOPFLAG%" (
echo %date% %time% stop.flag found, exiting >> "%LOG%"
exit /b 0
)
echo %date% %time% updating >> "%LOG%"
C:\steamcmd\steamcmd.exe +force_install_dir %INSTALL% +login anonymous +app_update 2394010 validate +quit >> "%LOG%" 2>&1
echo %date% %time% starting server >> "%LOG%"
cd /d %INSTALL%
PalServer.exe -port=8211
echo %date% %time% server exited with code %errorlevel% >> "%LOG%"
ping -n 31 127.0.0.1 >nul
goto loop
A few notes on how this works:
- The
stop.flagfile is the off switch. If you want the server down for maintenance, create an empty file namedstop.flagin the server folder, then stop the server. Without it, the loop restarts the server within about 30 seconds. Delete the file and start the task when you are done. ping -n 31 127.0.0.1is a 30-second pause. It is used instead oftimeoutbecausetimeoutcan fail in a scheduled task with no console attached.- The update step runs before every launch. A crash loop will therefore run SteamCMD each time. If it keeps crashing, read the game log instead of letting it spin, and put
stop.flagin place. validateis slower than a plain update because it checks every file. Drop the word if starts become slow.- The loop will also restart the server after a normal shutdown, such as an admin shutdown. That is what you want for scheduled restarts below.
6. Scheduled restarts
A daily restart keeps memory use in check on long-running servers, and with the watchdog above, the restart also applies updates.
Palworld can be stopped cleanly through its REST API, which is documented by Pocketpair. In PalWorldSettings.ini, set RESTAPIEnabled=True and make sure AdminPassword is set. The API listens on TCP 8212 by default and uses HTTP Basic authentication with the user admin. Do not forward that port or expose it to the internet. Then save this as C:\palserver\restart.bat:
@echo off
curl.exe -u admin:ChangeThisAdminPassword -X POST -H "Content-Type: application/json" -d "{\"waittime\":60,\"message\":\"Server restarting in 1 minute\"}" http://127.0.0.1:8212/v1/api/shutdown
Run it daily from a Task Scheduler task with a Daily trigger at a quiet hour. The server announces the restart, shuts down after 60 seconds, and the watchdog starts it again. There is also a /v1/api/save endpoint you can call first to force a save.
ASA has no built-in HTTP equivalent. It needs an RCON client sending a shutdown command, which is why many people use a management tool. The ARK wiki lists PowerShellGSM, which handles backups, updates, monitoring, and restarts, and ASA Server Manager. The free tools on this site can also manage ASA and Palworld servers from a GUI.
7. Survive a power cut: UPS
A UPS gives you minutes of battery to let Windows shut down cleanly instead of cutting power mid-save. It also covers the brief blips that would otherwise reboot the PC.
- Plug the PC and the router/modem into the battery outlets. A server on battery with no network is not much use to friends, though it still saves your data.
- Connect the UPS’s USB cable to the PC, and install the vendor’s own shutdown software so Windows shuts down before the battery runs out. Check your UPS’s manual for the supported software.
- Pick a UPS with a power rating that covers your PC’s peak draw with room to spare.
8. Back up on a schedule
Both games keep everything that matters in one folder: C:\asa-server\ShooterGame\Saved for ASA and C:\palserver\Pal\Saved for Palworld. Palworld’s optional bIsUseBackupSaveData creates rolling in-game backups, which add disk load. They are not a copy you control.
Save this as C:\scripts\backup.ps1 (create the folder first). It makes a timestamped copy of each save folder and deletes copies older than 14 days:
$dest = "D:\ServerBackups" # use a different drive than the server's
$keepDays = 14
$stamp = Get-Date -Format "yyyy-MM-dd_HH-mm"
$sources = @{
"asa" = "C:\asa-server\ShooterGame\Saved"
"palworld" = "C:\palserver\Pal\Saved"
}
foreach ($name in $sources.Keys) {
$src = $sources[$name]
if (Test-Path $src) {
$target = Join-Path $dest "$name-$stamp"
New-Item -ItemType Directory -Path $target -Force | Out-Null
robocopy $src $target /E /R:1 /W:1 /NFL /NDL /NJH /NJS | Out-Null
}
}
Get-ChildItem $dest -Directory |
Where-Object { $_.LastWriteTime -lt (Get-Date).AddDays(-$keepDays) } |
Remove-Item -Recurse -Force
Change D:\ServerBackups to a folder on a different drive. Then schedule it daily at 4:00 AM from an Administrator Command Prompt:
schtasks /create /tn "Game server backup" /tr "powershell.exe -NoProfile -ExecutionPolicy Bypass -File C:\scripts\backup.ps1" /sc daily /st 04:00 /ru SYSTEM
Notes:
- Copying a live server is not perfect. If a copy lands mid-save it can be incomplete, which is why this keeps 14 days of copies instead of one. ASA autosaves on a regular interval, so a restart-then-copy is cleaner if you can arrange it.
- Back up before every update, as well as on the schedule.
- Restore by stopping the server, renaming the live
Savedfolder, and copying a backup in place of it. Always test a restore once, on a spare folder. - One drive is not enough. If the world matters, also copy the backup folder to a second place, such as cloud storage or another PC.
9. Know when it breaks
- Read
watchdog.logif the server seems to restart a lot. It shows when each update and launch happened. - In Task Scheduler, the Last Run Result column shows whether your tasks started.
- Check from outside the house, such as from your phone, that friends can really reach it. A server can be up while the router forward is broken.
Troubleshooting
The server does not start after a reboot. Open the task’s History tab in Task Scheduler. The usual causes are a wrong Start in folder, a script path with a typo, or the account password having changed.
The task runs but the server is not listening. Run netstat -ano -p UDP | findstr 7777 (or 8211 for Palworld). If nothing shows, the game exited. Check watchdog.log.
It restarts endlessly. Put stop.flag in the folder, then read the game’s own log. Common causes are a bad launch option or a corrupted save, in which case restore a backup.
Updates take forever or fail. Check that steamcmd.exe exists at C:\steamcmd and that you can run the same app_update line manually.
What to do next
Once the server is stable, see How to Let Friends Join Your Home Server Safely. If you run both games on one PC, see How to Run ARK and Palworld Servers on the Same PC.