WowLegacyCore/HermesProxy

StartNetwork failed to Start AsyncAcceptor // Failed to start BnetTcpSession service

Opened this issue · 5 comments

Hi, I just changed the two lines in the code as suggested, using HermesProxy v3.7 with Windows.
At my laptop it is working perfectly fine like this.
However, on my desktop i receive an error message:

10:49:31 | Server | Server | Starting BnetTcpSession service on 127.0.0.1:1119...
10:49:31 | Error | AsyncAcceptor | System.Net.Sockets.SocketException (10013): Der Zugriff auf einen Socket war aufgrund der Zugriffsrechte des Sockets unzulässig.
at System.Net.Sockets.Socket.UpdateStatusAfterSocketErrorAndThrowException(SocketError , String )
at System.Net.Sockets.Socket.DoBind(EndPoint , SocketAddress )
at System.Net.Sockets.Socket.Bind(EndPoint )
at System.Net.Sockets.TcpListener.Start(Int32 )
at System.Net.Sockets.TcpListener.Start()
at Framework.Networking.AsyncAcceptor.Start(String ip, Int32 port) in D:\a\HermesProxy\Framework\Networking\AsyncAcceptor.cs:line 46
10:49:31 | Network | SocketManager | StartNetwork failed to Start AsyncAcceptor
Unhandled exception: System.Exception: Failed to start BnetTcpSession service
at HermesProxy.Server.StartServer[TSocketType](IPEndPoint bindIp)
at HermesProxy.Server.ServerMain(CommandLineArguments args)
at HermesProxy.Program.<>c.

b__0_0(InvocationContext ctx)
at System.CommandLine.Invocation.AnonymousCommandHandler.Invoke(InvocationContext )
at System.CommandLine.Invocation.InvocationPipeline.<>c__DisplayClass4_0.<b__0>d.MoveNext()
--- End of stack trace from previous location ---
at System.CommandLine.Builder.CommandLineBuilderExtensions.<>c__DisplayClass17_0.<b__0>d.MoveNext()
--- End of stack trace from previous location ---
at System.CommandLine.Builder.CommandLineBuilderExtensions.<>c__DisplayClass12_0.<b__0>d.MoveNext()
--- End of stack trace from previous location ---
at System.CommandLine.Builder.CommandLineBuilderExtensions.<>c__DisplayClass22_0.<b__0>d.MoveNext()
--- End of stack trace from previous location ---
at System.CommandLine.Builder.CommandLineBuilderExtensions.<>c__DisplayClass19_0.<b__0>d.MoveNext()
--- End of stack trace from previous location ---
at System.CommandLine.Builder.CommandLineBuilderExtensions.<>c.<b__18_0>d.MoveNext()
--- End of stack trace from previous location ---
at System.CommandLine.Builder.CommandLineBuilderExtensions.<>c__DisplayClass16_0.<b__0>d.MoveNext()
--- End of stack trace from previous location ---
at System.CommandLine.Builder.CommandLineBuilderExtensions.<>c.<b__5_0>d.MoveNext()
--- End of stack trace from previous location ---
at System.CommandLine.Builder.CommandLineBuilderExtensions.<>c__DisplayClass8_0.<b__0>d.MoveNext()
Press enter to close

So somehow the socket cannot be used. It is probably used by another application? But I dont know how to troubleshoot best.
Any suggestions?
Thanks!
Unbenannt

Make sure no other program is using port 1119.

Also make sure you ain't running program twice.

No other program is using port 1119,but i still receive this error.

0blu commented

Maybe your antivirus is blocking the socket creation process

I meet the same problem ,make sure no other program using port 1119,and restart computer ,close antivirus , no work ,any other suggestions?