hey, error when i load server, picture of whats happening is attached
and that should do it .Quote:
private void Listen()
{
try
{
XYNetCommon.SetSocketPermission();
Listener = new Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp);
Listener.Bind(new IPEndPoint(IPAddress.Any, m_nPort));
Listener.Listen(500);
Listener.BeginAccept(new AsyncCallback(WaitConnections), new StateObj());
}
catch (SocketException X) { Program.WriteLine(X); }
}