Jump to content
  • 0

Companion server failed to start: System.Net.Sockets.SocketException


LosGranada

Question

Hello,
currently have the following problem:

1_error.thumb.png.5d887c9060241bb85bd9929838eb0ecc.png

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

2_cmd.thumb.png.045be2f5084bae0b42ea81c0b0a7743e.png

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.

Unbenannt.png.6fb6cfb7860a148f1ccedb0922b38dc2.png

 

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.

Edited by LosGranada
Link to comment
Share on other sites

3 answers to this question

Recommended Posts

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
1.2m

Downloads

Total number of downloads.

6.1k

Customers

Total customers served.

90.3k

Files Sold

Total number of files sold.

1.8m

Payments Processed

Total payments processed.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.