Initialize a Steam Server
masterTo create a dedicated server, use SteamServer.Init with a SteamServerInit configuration object. This allows you to specify the game name, ports, and security settings.
var serverInit = new SteamServerInit( "gmod", "Garry Mode" )
{
GamePort = 28015,
Secure = true,
QueryPort = 28016
};
try
{
Steamworks.SteamServer.Init( 4000, serverInit );
}
catch ( System.Exception )
{
// Couldn't init for some reason (dll errors, blocked ports)
}