How to Set Up an Assetto Corsa Dedicated Server on AnonVM Hosting

Assetto Corsa is one of the most popular racing simulators, offering a realistic driving experience with a wide variety of cars, tracks, and multiplayer modes. If you're interested in hosting your own Assetto Corsa dedicated server, this guide will walk you through the installation and configuration process on AnonVM hosting. Hosting your own server allows you to control the racing environment, customize track lists, and create private or public racing events.

Prerequisites

Before starting the installation, ensure you have:

  • A VPS from AnonVM with at least 4 GB of RAM, 2 CPU cores, and 20 GB of storage.
  • SSH access to your VPS.
  • Basic knowledge of Linux commands.
  • SteamCMD installed (or follow our previous guides to install it).

Step 1: Access Your AnonVM VPS

  1. Log in to your AnonVM account and access your VPS.
  2. Use an SSH client like PuTTY (on Windows) or your terminal (Linux/Mac) to connect to your VPS:
     
    ssh root@your-vps-ip
    Replace your-vps-ip with the actual IP address of your VPS, and enter your password when prompted.

Step 2: Install Required Dependencies

Assetto Corsa requires certain libraries and utilities to run.

  1. Update your system:

     
    apt-get update && apt-get upgrade -y
  2. Install necessary libraries:

     
    apt-get install wget curl unzip screen lib32gcc1 -y

These libraries ensure that your server runs smoothly.

Step 3: Install SteamCMD

SteamCMD is the tool you'll use to install the Assetto Corsa server files.

  1. Create a directory for SteamCMD:

     
    mkdir -p /home/steam cd /home/steam
  2. Download and extract SteamCMD:

     
    wget https://steamcdn-a.akamaihd.net/client/installer/steamcmd_linux.tar.gz tar -xvzf steamcmd_linux.tar.gz
  3. Verify the installation:

     
    ./steamcmd.sh

    You should see the SteamCMD console. Type quit to exit the console.

Step 4: Download Assetto Corsa Server Files

  1. Log in to SteamCMD:

     
    ./steamcmd.sh login anonymous
  2. Set the installation directory for the Assetto Corsa server:

     
    force_install_dir ./assetto_corsa_server
  3. Download the Assetto Corsa server files:

     
    app_update 302550 validate

    The server files will now be downloaded to the specified directory. This may take some time depending on your internet speed.

Step 5: Configure the Assetto Corsa Server

Once the files are installed, you need to configure your server settings.

  1. Navigate to the server directory:

     
    cd /home/steam/assetto_corsa_server
  2. Edit the server.cfg file: Open the server.cfg file with a text editor like nano:

     
    nano server.cfg

    Key settings you may want to modify:

    • NAME: Set the name of your server.
    • PASSWORD: (Optional) Set a password to secure your server.
    • PORT: Set the port number for the server to run on (default is 9600).
    • TRACK: Choose the default track for your server.
    • MAX_CLIENTS: Set the maximum number of players that can join your server.
    • ADMIN_PASSWORD: (Optional) Set a password for admin access.

    Save the file by pressing CTRL + X, then Y to confirm.

Step 6: Open Required Ports

For players to connect to your Assetto Corsa server, you need to open the necessary ports.

  1. Open the required ports: The default port for Assetto Corsa servers is 9600. Open this port using the following commands:

     
    ufw allow 9600/tcp ufw allow 9600/udp ufw reload

    This allows incoming traffic on the port required by your server.

Step 7: Start the Assetto Corsa Server

Once your server is configured, it's time to start it.

  1. Start the server in a screen session: Using a screen session allows the server to run in the background, even if you disconnect from the SSH session.

     
    screen -S assetto_corsa_server
  2. Run the server: Start the Assetto Corsa server with the following command:

     
    ./ac_server -batch -config ./server.cfg
  3. Detach from the screen session: To detach from the screen session, press CTRL + A, then D. This will keep the server running in the background.

  4. Reattach to the screen session: If you need to see the server console, run:

     
    screen -r assetto_corsa_server

Step 8: Connect to Your Server

To join your Assetto Corsa server from the game client:

  1. Launch Assetto Corsa and go to the Multiplayer section.
  2. Use the Direct Connect option and enter your server’s IP address and port (your-vps-ip:9600).
  3. If you set a password, you will be prompted to enter it.

Step 9: Update Your Server

To keep your server up to date, use the following steps:

  1. Log in to SteamCMD:

     
    ./steamcmd.sh login anonymous
  2. Check for updates:

     
    force_install_dir ./assetto_corsa_server app_update 302550 validate

    This will update your server to the latest version.

Conclusion

Congratulations! You've successfully set up an Assetto Corsa dedicated server on AnonVM. Hosting your own server allows you to customize the racing experience, control player settings, and have fun with friends or the community. Be sure to keep your server updated and check for any new mods or tracks to enhance your racing experience.

Was this answer helpful? 0 Users Found This Useful (0 Votes)

Powered by WHMCompleteSolution