From a1a3db783cd184f7ca04449e27b6d6c0f1f59eba Mon Sep 17 00:00:00 2001 From: Cj <161484149+CJ-SPT@users.noreply.github.com> Date: Wed, 15 Oct 2025 01:33:18 -0400 Subject: [PATCH] Explicitly handle socket exceptions (Multiple servers running) --- SPTarkov.Server/Program.cs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/SPTarkov.Server/Program.cs b/SPTarkov.Server/Program.cs index 443debc0..c7a991c7 100644 --- a/SPTarkov.Server/Program.cs +++ b/SPTarkov.Server/Program.cs @@ -32,6 +32,14 @@ public static class Program { await StartServer(args); } + catch (SocketException) + { + Console.WriteLine("========================================================================================================="); + Console.WriteLine("You have multiple servers running or another process using port 6969"); + Console.WriteLine("========================================================================================================="); + Console.WriteLine("Press any key to exit..."); + Console.ReadLine(); + } catch (Exception e) { Console.WriteLine("=========================================================================================================");