To host a dedicated server for Barotrauma, you can use either the built-in application or SteamCMD. Here’s a concise guide on how to set it up:
1. **DedicatedServer.exe**:
- Ensure your server settings are configured and port forwarding is set up.
- Run `DedicatedServer.exe` from the Barotrauma folder.
- Wait for the command line to display "Server started" to confirm it's ready.
2. **SteamCMD**:
- Install SteamCMD and log in with `login anonymous`.
- Install the Barotrauma Dedicated Server using `app_update 1026340 validate`.
- Configure your server settings and port forwarding.
- Start the server with `app_run 1026340` and wait for "Server started".
3. **Port Forwarding**:
- If your router supports UPnP, enable it in the server settings.
- For manual port forwarding, access your router's configuration page and add UDP port forwards for the default ports (27015 and 27016).
4. **Server Configuration**:
- Edit `serversettings.xml` to adjust server settings.
- Modify `clientpermissions.xml` to manage user permissions.
For detailed steps and additional configurations, refer to the official Barotrauma Wiki
here.