Sons of the Forest is a survival horror game that builds on the success of its predecessor, The Forest. Set in an open world, the game focuses on survival, crafting, and exploration in a mysterious forest inhabited by dangerous creatures. Hosting your own dedicated server allows you to have full control over your game world, host private sessions, and manage gameplay settings. In this guide, we will walk you through the process of setting up a Sons of the Forest server on an AnonVM VPS.
Prerequisites
Before proceeding with the setup, make sure you have the following:
- A VPS from AnonVM with at least 4 GB of RAM and 2 CPU cores.
- SSH access to your VPS.
- Basic understanding of Linux commands.
- SteamCMD installed on your VPS. If SteamCMD is not installed, refer to previous guides to set it up.
Step 1: Access Your AnonVM VPS
- Log in to your AnonVM account and access your VPS.
- Use an SSH client like PuTTY (on Windows) or your terminal (Linux/Mac) to connect to your VPS:
your-vps-ip
with your actual VPS IP address. Enter your password when prompted.
Replace
Step 2: Install Required Dependencies
Before we can install the server, we need to install some dependencies.
-
Update your system:
-
Install necessary dependencies:
These dependencies are required to run the server smoothly on your VPS.
Step 3: Install SteamCMD
SteamCMD is the tool we will use to download the server files for Sons of the Forest.
-
Create a directory for SteamCMD:
-
Download and extract SteamCMD:
-
Verify the installation:
This command should launch SteamCMD. Once it opens, type
quit
to exit.
Step 4: Download the Sons of the Forest Server Files
-
Log in to SteamCMD: Open SteamCMD and log in using the following command:
-
Set the installation directory: We need to specify the directory where the server files will be installed:
-
Download the server files: Run the following command to download the Sons of the Forest dedicated server files:
This command will download the server files for Sons of the Forest. The process may take some time, depending on your internet speed and the server's performance.
Step 5: Configure the Server
Once the server files have been downloaded, it’s time to configure the server.
-
Navigate to the server directory:
-
Modify the server configuration file: The configuration file for the server can be found in the directory. You’ll need to adjust several parameters to customize the server settings.
Open the configuration file using a text editor like
nano
:Some key settings to adjust:
- ServerName: Set your server’s name here.
- MaxPlayers: Set the maximum number of players allowed to join the server (e.g.,
MaxPlayers=8
). - Password: If you want to password-protect the server, set a password in the
Password
field. - Port: The default port is usually 7777. Ensure that this port is open on your VPS.
Save and exit the editor by pressing
CTRL + X
, thenY
to confirm the changes.
Step 6: Open Required Ports
To allow players to connect to your server, you need to open the required ports.
-
Open the default game port (7777):
-
Additional ports: If necessary, open the ports for server management or other game services, such as 7778:
Step 7: Start the Sons of the Forest Server
Now that everything is configured, it’s time to launch the server.
-
Start the server in a screen session: Running the server in a screen session will allow it to keep running in the background even if you disconnect from SSH:
-
Start the server: Run the following command to start the server:
-
Detach from the screen session: You can detach from the screen session without stopping the server by pressing
CTRL + A
, thenD
. -
Reattach to the session: If you need to interact with the server again, use the following command to reattach:
Step 8: Connect to Your Server
To connect to your server, follow these steps:
- Launch Sons of the Forest on your game client.
- Go to the Multiplayer section and click on Join Game.
- Enter your VPS IP address followed by the port number (e.g.,
your-vps-ip:7777
). - If the server is password-protected, you will be prompted to enter the password you set earlier.
Step 9: Update the Server
To keep your server updated with the latest patches and fixes, use SteamCMD to check for updates periodically.
-
Log in to SteamCMD:
-
Update the server:
This will update your server to the latest version.
Conclusion
Your Sons of the Forest dedicated server is now up and running on your AnonVM VPS! You can invite your friends to join the server, adjust gameplay settings, and explore the depths of the forest together. With full control over the server, you can customize your gaming experience, host mods, and more.
Enjoy hosting your own Sons of the Forest server and have fun exploring, surviving, and crafting in the dangerous world of the forest!