How to Set Up an American Truck Simulator Dedicated Server on AnonVM Hosting
Introduction
American Truck Simulator is a popular truck simulation game where players drive trucks across the United States, transporting cargo. By setting up a dedicated server, you can host a multiplayer experience with custom settings, mods, and a persistent world for you and your community.
Prerequisites
- An AnonVM VPS with at least 2GB of RAM and 2 CPU cores (recommended for smooth gameplay).
- SSH access to your VPS.
- Basic knowledge of Linux command-line operations.
- American Truck Simulator server files (available via SteamCMD or from SCS Software’s distribution).
Step 1: Access Your AnonVM VPS
- Log in to your AnonVM dashboard and locate the details for your VPS.
- Use SSH to connect to your VPS:
your-vps-ip
with your VPS’s actual IP address.
Replace
Step 2: Install Required Dependencies
-
Update your system to ensure you have the latest packages:
-
Install required libraries for running ATS:
Step 3: Install SteamCMD
SteamCMD is a tool that allows you to install and manage game servers. It is required for installing the ATS server.
-
Install SteamCMD: First, create a directory to store SteamCMD and download it:
-
Extract SteamCMD: Unpack the SteamCMD files:
-
Run SteamCMD: Start SteamCMD:
Type
quit
to exit once you’ve initialized SteamCMD.
Step 4: Download the American Truck Simulator Server Files
-
Install the server files: Use SteamCMD to download the ATS server files:
Inside SteamCMD, use the following commands:
The
270880
app ID corresponds to American Truck Simulator. This will install the dedicated server files to the/home/atsserver
directory.
Step 5: Configure the Server
-
Navigate to the ATS server directory: Once the files are downloaded, go to the server folder:
-
Edit the server configuration: American Truck Simulator server configuration files are located in the
config
folder. Open the main configuration file to modify settings:Common configuration options to modify:
- server_name: Set your server’s name.
- max_players: Adjust the maximum number of players.
- password: If you want a password-protected server, set one here.
- game_mode: Choose between "Freeroam" or "Convoy" mode.
Example configuration:
Step 6: Open Necessary Ports on Your VPS
To allow players to connect to your server, you need to open specific ports in your firewall.
-
Identify required ports for ATS. The default ports for ATS multiplayer servers are:
- TCP/UDP Port 27015: For game traffic.
- TCP/UDP Port 20810-20812: For Steam-related services.
-
Open the ports using UFW:
Step 7: Start the Server
-
Launch the server: Now that the configuration is set, you can start the server with the following command:
To run the server in the background, use
screen
ortmux
to ensure it stays running even if you disconnect from the session.-
Install screen (if not already installed):
-
Start the server in screen:
-
To detach from the screen session, press
Ctrl + A
, thenD
. To reattach later, use:
-
Step 8: Connect to the Server
Once the server is running, players can join your server by entering the IP address of your VPS along with the port (e.g., your-vps-ip:27015
).
- Launch American Truck Simulator.
- Navigate to Multiplayer, then choose Server Browser.
- Search for your server by name, or input the server’s IP address manually.
Step 9: Update the Server
To ensure your server stays up to date, periodically check for updates using 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 dedicated American Truck Simulator server running on your AnonVM VPS. You and your friends can now enjoy trucking across the United States with custom settings, mods, and a persistent multiplayer world. Make sure to check for regular updates to keep your server up to date and optimize the experience for players.
If you want to enhance your server, you can also add mods or use custom maps to create a more unique experience. Explore the ATS modding community for more ways to personalize your server.