Hello,
currently have the following problem:
Companion server failed to start: System.Net.Sockets.SocketException (0x80004005): Only one usage of each socket address (protocol/network address/port) is normally premitted.
at System.Net.Sockets.Socket.Bind (System.Net.EndPoint localEP) [0x00043] in <ae22a4e8f83c41d69684ae7f557133d9>:0
at Fleck.SocketWrapper.Bind (System.Net.EndPoint endPoint) [0x00000] in <f1ab979dad39453bb3ab99ae17860fb2>:0
at Fleck.WebSocketServer.Start (System.Action`1[T] config) [0x00018] in <f1ab979dad39453bb3ab99ae17860fb2>:0
at CompanionServer.Listener..ctor (System.Net.IPAddress ipAddress, System.Int32 port) [0x000a8] in <fe8f45fbfccd4e6f916ad0e590a44ac3>:0
at CompanionServer.Server.Initialize () [0x00037] in <fe8f45fbfccd4e6f916ad0e590a44ac3>:0
(20:19:30) | Server startup complete
What's strange is that I can still connect to the Rust app and the server.
I have already tried many things, but when I deactivate the app with -1, the error no longer occurs.
No other process listens to this port.
I have already open again the ports, uninstalled programs, enabled/disabled Hyper-V, disabled Windows Sandbox, delete firewall rules.
When I start the server via a batch, the error does not appear.
@echo off
cls
echo Starting Server...
RustDedicated.exe -batchmode -nographics -silent-crashes ^
+server.port 28015 ^
+rcon.port 28016 ^
+rcon.password "123456" ^
+app.port 28083 ^
+server.identity "mrs" ^
+server.gamemode vanilla ^
+server.level "Procedural Map" ^
+server.seed 3486489 ^
+server.worldsize 3500 ^
-LogFile "server\rst\server.log"
But I want to give the RustDedicated.exe the start arguments.
This then looks like this, everything the same as the batch file.
StartServer.StartInfo.FileName = root.Text & "\RustDedicated.exe"
StartServer.StartInfo.Arguments = "-batchmode -nographics -silent-crashes^" & vbNewLine &
"+server.port 28015 ^" & vbNewLine &
"+rcon.port 28016 ^" & vbNewLine &
"+rcon.password 123456 ^" & vbNewLine &
"+server.identity ""mrs"" ^" & vbNewLine &
"+server.gamemode vanilla ^" & vbNewLine &
"+server.level ""Procedural Map"" ^" & vbNewLine &
"+server.seed 3486489 ^" & vbNewLine &
"+server.worldsize 3500 ^" & vbNewLine &
"-LogFile ""server\mrs\servertest.log"""
Server loads normally but then comes the error message.
Thanks for your help.