Skip to content

SRS Server (WIP)

OzDeaDMeaT edited this page May 2, 2021 · 18 revisions

This page is aimed at Dedicated Server setups. If you find any information in this wiki/documentation which requires correction or updating, please leave a comment, contact one of the contributors, or leave a message on the SRS discord.

Contents

SRS Server Prerequisites

W.I.P. In order to host a DCS-SimpleRadio server, you must forward the following TCP and UDP port 5002. Once the necessary ports are open, simply run the 'SR-Server.exe'. It does not have to be run on a PC running DCS! You can edit the default server port by editing the server.cfg.

If you edit - make sure to update your port forwarding and always forward both protocols TCP and UDP.

SRS Server Installation

W.I.P.

SRS Server Configuration

W.I.P.

Auto Connect Feature - Server Owners ONLY - Clients don't need this file!

To enable SRS clients to be prompted automatically to connect just add the DCS-SRS-AutoConnectGameGUI.lua to the appropriate DCS Saved Games folder e.g. DCS.openbeta/Scripts/Hooks, DCS.openalpha/Scripts/Hooks or jut DCS/Scripts/Hooks

Edit the line shown below in your DCS-SRS-AutoConnectGameGUI.lua to your server address where SRS server is running. Port is optional. DCS must be restarted on the server for this file and any changes to take effect.

-- CHANGE FROM
SRSAuto.SERVER_SRS_HOST = "127.0.0.1" -- Port optional e.g. "127.0.0.1:5002"

--TO
SRSAuto.SERVER_SRS_HOST = "5.189.162417:5014" -- BuddySpike One
-- OR
SRSAuto.SERVER_SRS_HOST = " 37.59.10.136" -- TAW One (port optional)

Auto Export List:

Outputs JSON every 30 seconds to clients-list.json. This can be used to show what users are connected to the server on a separate webpage or app.

If this is your first time hosting a server, there are plenty of guides on the internet already dedicated to port forwarding! If you believe you have your ports forwarded and are still unable to get users connected to your server, make sure you have forwarded the ports on EVERY ROUTER between you and your ISP. Many times, your ISP will have a sort of virtual router installed or a physical router specific to your connection, somewhere in the physical node of your area. You are typically free to edit these, though the IP address to connect to them can vary. Call your ISP if you believe this is the case and cannot find the relevant IP to connect through.

SRS Server GUI Walkthrough

W.I.P.

Start/Stop Server

Start and stop the server

Clients:

number of SR-Clients connected to the server

Client Admin

View names of connected clients; The names of the clients will be displayed as follows:

  • if the Client is not in a DCS mission
  • 'player' if the Client is in a Single Player DCS mission
  • if the Client is in a Multi Player DCS mission Kick a client to kick that client Ban a client to ban that client

Secure Coalition Radios On/Off

When turned ON - Each coalition can only hear other radios of the same Coalition. I.e. Red to Red, Blue to Blue, Spectator to Spectator

When turned OFF - Any coalition can hear any other coalitions radio. To keep your radio secure from eavesdropping, don't publish your frequencies to the enemy or if available, use encryption 👍

Spectator Audio:

When the button shows 'Enabled' spectators are given the ability to use SimpleRadio as if they were in a FC3 ship and may send/receive on any channel they select.

Methods of Starting SR-Server

W.I.P. In this section we will cover two methods of initialization for SR-Server.

PowerShell Initialization Methods (Single Instance)

PowerShell stores data in variables, variables are identifiable by the preceeding '$'.

$srsDIR variable is the location of your SRS installation.

$srsEXE variable uses the $srsDIR variable and adds \SR-Server.exe to signify the executable for the SRS Server.

start-process is the PowerShell command that will execute SR-Server.exe and start your SRS Server. This command needs to know where the executable is ($srsEXE) and where the program will be working ($srsDIR)

Create a File called Start_SRS.ps1, open the file in your code / text file editor of choice. Copy the Code snippet below into the file.

$srsDIR = "<INSERT YOUR SRS INSTALL FOLDER HERE>"
$srsEXE = "$srsdir\SR-Server.exe"
start-process $srsexe -WorkingDirectory $srsDIR

PowerShell Initialization Methods (Mutli-Instance)

In addition to the Single Instance Variables, Multi-Instance deployments need some additional variables.

$srsCONFIGFile variable is the location of configuration file for this instance of SR-Server you are trying to run. e.g. $srsCONFIGFile= "server02.cfg"

$srsARGS variable is a set of arguments thrown to the start-process command, this is to call out the '-cfg=' argument.

start-process is the PowerShell command that will execute SR-Server.exe and start your SRS Server. This command needs to know where the executable is ($srsEXE) and where the program will be working ($srsDIR)

Create a File called Start_SRS.ps1, open the file in your code / text file editor of choice. Copy the Code snippet below into the file.

$srsDIR = "<INSERT YOUR SRS INSTALL FOLDER HERE>"
$srsCONFIGFile= "<insert your config file name here>"
$srsARGS= "-cfg=`"$SRS_Config`""
$srsEXE = "$srsdir\SR-Server.exe"
start-process $srsexe -ArgumentList $srsARGS -WorkingDirectory $srsdir

Clone this wiki locally