static void Main(string[] args) { Console.WriteLine("Hello Server!"); DoctorPasswordData.Init(); AllClients.Init(); Listener = new TcpListener(IPAddress.Any, 15243); Listener.Start(); Listener.BeginAcceptTcpClient(new AsyncCallback(OnConnect), null); Console.ReadLine(); while (true) { } }