background image
Game Servers 380 7 Days to Die 4 Abiotic Factor 2 Aloft 2 alt:V 2 Americas Army Proving Grounds 2 Among Us 2 Archean 2 ARK Survival Ascended 6 ARK Survival Evolved 3 Arma 3 3 Arma Reforger 2 Aska 2 AssaultCube 2 Assetto Corsa 3 Astro Colony 2 Astroneer 2 Automobilista 2 2 Avorion 2 Banana Shooter 2 Barotrauma 3 BATTALION Legacy 2 BeamNG.drive (BeamMP) 2 Black Mesa 2 Brickadia 2 Call of Duty 2 Citadel: Forged with Fire 2 ClassiCube 2 Clone Hero 2 Colony Survival 2 Conan Exiles 4 Contagion 2 Core Keeper 2 Counter-Strike 2 3 Craftopia 2 CryoFall 2 CS2D 2 Cube 2: Sauerbraten 2 Cubic Odyssey 2 DayZ 4 DDNet 2 DDRaceNetwork 2 Dead Matter 2 Dont Starve Together 4 Eco 2 Empyrion Galactic Survival 2 Enshrouded 3 Escape from Tarkov 2 Euro Truck Simulator 2 2 Factorio 2 Farming Simulator 25 2 Fistful of Frags 2 FiveM 3 FortressCraft Evolved 2 Foundry 2 Foundry VTT 2 Frozen Flame 2 FTL Tachyon 2 Garrys Mod 3 Ground Branch 2 Half-Life 2 Deathmatch 2 Hogwarp 2 Holdfast: Nations at War 2 HumanitZ 2 Hurtworld 2 Hytale 1 Icarus 2 Insurgency Sandstorm 2 IOSoccer 2 Just Cause 3 Multiplayer 2 Kerbal Space Program 2 Killing Floor 2 3 LeagueSandbox 2 Left 4 Dead 2 Left 4 Dead 2 3 Longvinter 2 Los Angeles Crimes 2 Medal of Honor 2 Midnight Ghost Hunt 2 Mindustry 2 Minecraft 4 Minetest 2 Modiverse 2 Mordhau 3 Mount & Blade II: Bannerlord 2 Myth of Empires 2 Nazi Zombies Portable 2 Necesse 2 NeosVR 2 Neverwinter Nights EE 2 Night of the Dead 2 Nightingale 2 No Love Lost 2 No More Room in Hell 2 No One Survived 2 Nova-Life Amboise 2 Nuclear Option 2 Onset 2 Open Fortress 2 OpenArena 2 OpenRA 2 OpenRCT2 2 OpenTTD 2 Operation Harsh Doorstop 2 Palworld 3 Path of Titans 2 Pavlov VR 3 PixARK 2 Plains of Pain 2 Portal Knights 2 Post Scriptum 2 Project Zomboid 8 Puck 2 Quake Live 2 R5Reloaded 2 RedM 2 Renown 2 Resonite 2 Return to Moria 2 Rimworld Together 2 Rising World 2 Risk of Rain 2 1 Rust 4 Satisfactory 1 SCP Secret Laboratory 3 SCUM 2 Smalland 2 Solace Crafting 2 Soldat 2 Soldat 2 2 Sonic Robo Blast 2 2 Sons of the Forest 2 Soulmask 2 SourceCoop 2 Space Engineers 3 Space Station 14 2 Squad 3 Starbound 3 StarMade 2 Stationeers 2 Stormworks 2 Subnautica Nitrox 2 Sunkenland 2 SuperTuxKart 2 Sven Co-op 2 Swords 'n Magic and Stuff 2 Team Fortress 2 3 Teeworlds 2 Terraria 3 TerraTech Worlds 2 TF2 Classified 2 The Forest 3 The Front 2 The Isle 2 Tower Unite 2 Trackmania 2 Unturned 4 Urban Terror 2 V Rising 3 Valheim 3 VEIN 2 Veloren 2 Vintage Story 3 Voyagers of Nera 2 Wolfenstein: Enemy Territory 2 Wreckfest 2 Wurm Unlimited 2 Xonotic 2 Zandronum 2 Getting Started 2 Network & Connectivity 1 Server Management 2
Categories

Barotrauma Dedicated Server Setup Guide


Barotrauma Dedicated Server Setup Guide

This guide walks you through configuring and running your Barotrauma dedicated server hosted on Legion Hosting, including server settings, submarine selection, campaign save management, and how to connect.

Before you start: Your server must be installed and running via GPanel. If you need help locating your server IP and port, see How to Find Your Server IP and Port.

Table of Contents

  1. Configuring serversettings.xml
  2. Submarine Selection and Upload
  3. How to Connect
  4. Campaign Save Management

Configuring serversettings.xml

The primary configuration file for your Barotrauma server is serversettings.xml, located in the root of your server installation directory. You can edit this file via GPanel using the built-in file manager, or upload a modified version via SFTP.

Important: Stop your server before editing serversettings.xml. The server overwrites this file on shutdown, so changes made while the server is running will be lost.

Key Settings

Below are the most important settings you will want to configure. The file uses standard XML attribute syntax.

Setting Description
ServerName The name displayed in the in-game server browser.
Port The main UDP port players connect to. Must match your GPanel port assignment — check the Network tab in GPanel.
QueryPort The UDP port used for Steam server list queries. Check the Network tab in GPanel for the correct value.
Password Set a password to restrict access. Leave blank for a public server.
MaxPlayers Maximum number of players allowed on the server simultaneously.
AllowSpectating Whether players can join and spectate without taking a crew role.
GameMode The game mode. Valid values: Campaign, Mission, Sandbox. See below for details.

Game Modes

  • Campaign — Persistent co-op mode with progression, crew management, and a persistent save file. Recommended for regular friend groups.
  • Mission — Individual round-based missions. No persistent progression between sessions. Good for public servers.
  • Sandbox — Free-form mode with no objectives. Useful for building, testing submarines, or experimenting with mods.

Example serversettings.xml Snippet

<?xml version="1.0" encoding="utf-8"?>
<serversettings
  ServerName="Legion Hosting Barotrauma"
  Password=""
  MaxPlayers="8"
  AllowSpectating="true"
  GameMode="Campaign"
  Submarine="Humpback"
  AutoRestart="true"
  EnableUPnP="false"
/>
Tip: Set EnableUPnP="false" on hosted servers. UPnP is only relevant for home routers and will cause unnecessary connection attempts on dedicated infrastructure.
Ports: Do not copy port values from this example. You must set Port and QueryPort to the values shown in the Network tab of your GPanel.

Submarine Selection and Upload

The active submarine is set via the Submarine attribute in serversettings.xml. The value must match the submarine's filename (without the .sub extension) exactly, including capitalisation.

Default Submarines

Barotrauma ships with several built-in submarines. Common defaults include:

  • Humpback — Beginner-friendly, small crew.
  • Dugong — Balanced mid-size submarine.
  • Typhon — Large, requires a full crew.
  • Typhon2 — Upgraded large submarine.
  • Kastrull — Community favourite, versatile layout.

Uploading a Custom Submarine

If you have built or downloaded a custom submarine (.sub file), upload it to the Submarines/ directory in your server installation. You can do this via SFTP or the GPanel file manager.

  1. Connect to your server via SFTP or open the GPanel file manager at gpanel.legionhosting.net.
  2. Navigate to the Submarines/ directory inside your Barotrauma server folder.
  3. Upload your .sub file into this directory.
  4. Open serversettings.xml and update the Submarine attribute to the exact filename without the extension. For example, if your file is MySub.sub, set Submarine="MySub".
  5. Save the file and start your server.
Workshop submarines: If your custom submarine was downloaded from the Steam Workshop, it may need to be installed as a mod rather than placed directly in Submarines/. See the Mod Installation Guide for details.

How to Connect

Players can join your Barotrauma server in two ways: through the in-game server browser or via direct connect.

Server Browser

  1. Launch Barotrauma and click Play Online from the main menu.
  2. Wait for the server list to populate. Use the search box to find your server by name.
  3. Click your server and select Join. Enter the password if one is set.
Not seeing your server? The browser can take a minute to update. Make sure your query port is correctly configured (check GPanel Network tab) and the server is fully started.

Direct Connect

  1. From the Play Online screen, click Direct Join.
  2. Enter your server IP address and main port in the format xxx.xxx.xxx.xxx:port. Check the Network tab in GPanel for these values.
  3. Click Join.

If you are unsure of your server's IP address and port, refer to How to Find Your Server IP and Port.


Campaign Save Management

In Campaign mode, the server maintains a persistent save file that tracks progression, crew, money, and the state of the submarine. Understanding where this file lives and how to manage it is important for backups and resets.

Save File Location

Campaign saves are stored in the Saves/Multiplayer/ directory within your server installation folder. Each campaign is saved as a folder containing multiple files.

Backing Up a Campaign

  1. Stop your server from GPanel to ensure no data is being written.
  2. Connect via SFTP and navigate to Saves/Multiplayer/.
  3. Download the entire campaign folder to your local machine as a backup.
  4. Restart the server when done.

Resetting a Campaign

Warning: Deleting the campaign save folder is permanent and cannot be undone. Take a backup first.
  1. Stop your server.
  2. Navigate to Saves/Multiplayer/ via SFTP or the GPanel file manager.
  3. Delete the campaign folder you wish to reset.
  4. Start the server. A new campaign will be created when a player starts one from the main menu in-game.

Restoring from Backup

  1. Stop your server.
  2. Upload the backed-up campaign folder back into Saves/Multiplayer/ via SFTP, overwriting any existing files with the same name if prompted.
  3. Start the server.

Related Articles


Still having trouble? Open a support ticket at legionhosting.net/submitticket.php and include your server name, the error message from the GPanel console, and the steps you have already tried.

T'ha estat útil aquest article?

Ready to Get Started?

The servers are booted, select your plan and become our latest satisfied client.