Servidores de Jogos

Servidor Sons of the Forest dedicado: guia Linux (via Wine/Docker)

Sobre Sons of the Forest

Sons of the Forest (Endnight Games, 2024) é a continuação de The Forest. Survival cannibal com IA companion (Kelvin, Virginia), gráfico Unreal Engine 5. Coop até 8 players em dedicated server.

Status Linux

Segundo docs verificadas (redswitches.com, github.com/chemineer1/sons-of-the-forest-dedicated):

Server tool é oficialmente Windows (Steam AppID 2465200). Linux via Wine ou Docker com Wine embutido. Endnight não suporta Linux oficialmente.

Requisitos

Players RAM vCPU Disco
2-4 6 GB 2 vCPU 20 GB
4-8 12 GB 4 vCPU 40 GB

VPS/cloud: US$ 10-40/mês típico. Self-host home = grátis mas cliente instável.

Portas

  • 8766/UDP — game (padrão)
  • 27016/UDP — Steam query

Docker (recomendado Linux)

Imagem comunitária: github.com/chemineer1/sons-of-the-forest-dedicated.

docker-compose.yml:

services:
  sotf:
    image: chemineer/sons-of-the-forest-dedicated:latest
    container_name: sotf
    restart: unless-stopped
    ports:
      - "8766:8766/udp"
      - "27016:27016/udp"
    volumes:
      - ./saves:/home/steam/sotf/save
    environment:
      - SERVER_NAME=Meu SOTF - Vitt Host
      - SERVER_PASSWORD=senha_forte
      - MAX_PLAYERS=8
docker compose up -d

Instalação manual (SteamCMD + Wine)

apt install -y wine winetricks xvfb screen curl
useradd -m -s /bin/bash sotf
su - sotf

# SteamCMD
mkdir steamcmd && cd steamcmd
wget https://steamcdn-a.akamaihd.net/client/installer/steamcmd_linux.tar.gz
tar xzf steamcmd_linux.tar.gz

# Baixar servidor (AppID 2465200) forçando plataforma Windows
./steamcmd.sh +@sSteamCmdForcePlatformType windows 
  +force_install_dir ~/sotf-server +login anonymous 
  +app_update 2465200 validate +quit

Config (dedicatedserver.cfg)

~/sotf-server/dedicatedserver.cfg:

ServerName=Meu SOTF - Vitt Host
MaxPlayers=8
ServerPassword=senha_forte
GamePort=8766
QueryPort=27016
GameMode=Multiplayer
LaunchAdminPassword=admin_pw
Difficulty=Normal
IsSaveSlotMultiplayer=true
InvitePreference=Anyone

Rodar (via Wine)

cd ~/sotf-server
screen -S sotf xvfb-run wine SonsOfTheForestDS.exe -batchmode -nographics

xvfb-run cria display virtual (o server tenta abrir janela mesmo em modo headless).

Firewall

ufw allow 8766/udp
ufw allow 27016/udp

Como conectar

No cliente Sons of the Forest:

  • Multiplayer → Dedicated Server List
  • Encontre pelo nome OU Direct IP: SEU_IP:8766
  • Digite a senha

Backup

0 4 * * * tar czf /backup/sotf-$(date +\%F).tar.gz ~/sotf-server/save

Comandos in-game (admin)

Login: /admin senha_admin no chat.

/kick <player>
/ban <player>
/save
/reload
/help

Update

./steamcmd.sh +@sSteamCmdForcePlatformType windows 
  +force_install_dir ~/sotf-server +login anonymous 
  +app_update 2465200 validate +quit

Erros comuns

"Server não aparece na lista" — usa DirectIP, mas as vezes Steam query demora até 5 min pra sincronizar
"Wine crash ao startar" — falta xvfb-run (server precisa display virtual)
"Amigos não conseguem entrar" — porta 8766 UDP fechada
"Kelvin/Virginia não spawnam" — bug conhecido em coop, aguarde patch

Comparativo Wine vs Docker

Docker vence pra maioria (menos setup, mais reproduzível). Use SteamCMD+Wine manual só se precisa custom.

Perguntas frequentes

"Server oficial Linux vai sair?"
Endnight não anunciou. Como Enshrouded, roda via Wine na prática.

"Suporta mods?"
SOTF não tem mod loader oficial. Existem mods client-side via SOTF-Mods.io mas ninguém joga no server modded.

"Progresso salva no server?"
Sim. Server-side saves.

Links

Nossos VPS-BR-02 e superior suportam SOTF Docker sem problema.

Compartilhar:

Pronto para hospedar seu próximo projeto?

VPS com painel pré-instalado em 1 clique. Ativação imediata.

Ver planos VPS
⏰ 20% OFF em VPS-BR --:--:-- Ver oferta →