Olivine-Labs/Alchemy-Websockets — Issue #18: Alchemy can't bind socket without root access
Author: D-Williams
Created: 2012-01-03 19:36:19+00:00
State: open

I'm running ArchLinux and Mono 2.10.8. If I create a WebSocketServer object and call Start() on it, my program will throw an exception unless the program as run as root.

I'm fairly confident that binding to a socket does not require root access. If I write some socket code myself and bind to a socket, it works just fine as a regular user.

Here is the exception text it throws:

Unhandled Exception: System.Net.Sockets.SocketException: Access denied
at System.Net.Sockets.Socket.Bind (System.Net.EndPoint local_end) [0x00000] in :0
at System.Net.Sockets.TcpListener.Start (Int32 backlog) [0x00000] in :0
at System.Net.Sockets.TcpListener.Start () [0x00000] in :0
at Alchemy.TcpServer.Listen (System.Object state) [0x00000] in :0