How to Set Up a Euro Truck Simulator 2 Dedicated Server on AnonVM Hosting
Introduction
Euro Truck Simulator 2 is a popular truck driving simulator where players can take control of a trucking company, delivering goods across a vast map of Europe. Setting up your own dedicated server lets you and your community enjoy custom settings, mods, and a more personalized multiplayer experience.
Prerequisites
- An AnonVM VPS with at least 2GB of RAM and 2 CPU cores (recommended for stable performance).
- SSH access to your VPS.
- Basic knowledge of Linux command-line operations.
- Euro Truck Simulator 2 server files (available through SteamCMD or through SCS Software’s official distribution method).
Step 1: Access Your AnonVM VPS
- Log in to your AnonVM dashboard and access your VPS details.
- Use SSH to connect to your VPS:
your-vps-ip
with the actual IP address of your VPS.
Replace
Step 2: Install Required Dependencies
-
Update your system: First, make sure your system is up to date:
-
Install required libraries: Euro Truck Simulator 2 may require certain dependencies to run. Install the basic libraries with:
Step 3: Install SteamCMD
SteamCMD is a tool used to install and update dedicated servers for many Steam games, including ETS2.
-
Install SteamCMD: Create a directory to store SteamCMD and download it:
-
Extract SteamCMD: Extract the files from the downloaded archive:
-
Run SteamCMD: Execute SteamCMD to initialize it:
After this, you can exit SteamCMD by typing
quit
.
Step 4: Download Euro Truck Simulator 2 Server Files
-
Install the server files: Use SteamCMD to download the Euro Truck Simulator 2 server files:
Inside SteamCMD, run the following commands:
The
227300
app ID is for Euro Truck Simulator 2. This will download the dedicated server files to the/home/ets2server
directory.
Step 5: Configure the Server
-
Navigate to the server configuration files: Once the server files are downloaded, navigate to the ETS2 server folder:
-
Edit the configuration files: Euro Truck Simulator 2's server configuration files are typically located in the server folder, with files like
server_config.sii
. Open the configuration file to modify the server settings:Here are some common configuration options to adjust:
- server_name: Set your server name.
- max_players: Set the maximum number of players allowed on the server.
- password: If you want to restrict access, set a password.
- game_mode: Choose between "Freeroam" or "Convoy."
Example of a configuration:
Step 6: Open Required Ports on Your VPS
To allow players to connect to your server, you need to open the necessary ports in your VPS firewall.
-
Find out the necessary ports for Euro Truck Simulator 2. Typically, these ports are:
- TCP/UDP Port 27015: For game traffic.
- TCP/UDP Port 20810-20812: For Steam-related services.
-
Open the required ports using UFW (Uncomplicated Firewall):
Step 7: Start the Server
-
Start the server: After configuring everything, you can start your Euro Truck Simulator 2 dedicated server:
This will launch the server with the settings from the configuration file.
-
Running the server in the background: You can use
screen
ortmux
to run the server in the background:-
Install
screen
: -
Start a new screen session:
-
To detach from the screen session, press
Ctrl + A
, thenD
. To reattach later:
-
Step 8: Connect to Your Server
Once the server is running, players can join your server by entering the IP address of your VPS followed by the port (e.g., your-vps-ip:27015
).
- Launch Euro Truck Simulator 2.
- Go to Multiplayer, then select Server Browser.
- Enter your server’s IP address or search for it by name if you’ve made it public.
Step 9: Update the Server
To ensure your server is up to date with the latest patches and updates, you should regularly check for updates through SteamCMD.
-
Stop the server by pressing
Ctrl + C
in the screen session. -
Run the following commands to update the server:
-
Restart the server by running
./start.sh
again.
Conclusion
By following these steps, you now have a Euro Truck Simulator 2 dedicated server running on your AnonVM VPS. You and your friends can now enjoy driving across Europe, delivering cargo in a persistent multiplayer world. Custom settings, mod support, and private access to the game make hosting your own server a great option.
If you encounter any issues during setup or need to make further customizations (like adding mods or custom maps), you can refer to community resources or the official Euro Truck Simulator 2 forums for additional help.