Fleck icon indicating copy to clipboard operation
Fleck copied to clipboard

Why does I am getting SocketException. I am trying to connect running server localhost:9123

Open gittadesushil opened this issue 5 years ago • 0 comments

I have my own web socket server running on localhost port 9123. System.Net.Sockets.SocketException: 'An attempt was made to access a socket in a way forbidden by its access permissions'

Code snippet:

var server = new WebSocketServer("ws://0.0.0.0:9123");

            server.Start(socket =>
            {
                socket.OnOpen = () => Console.WriteLine("Open!");
                socket.OnClose = () => Console.WriteLine("Close!");
                socket.OnMessage = message => socket.Send(message);
            });

gittadesushil avatar Jul 23 '19 08:07 gittadesushil