static void Main(string[] args) { ServerClass sc = new ServerClass(15321); sc.ClientAntwort += ClientAntwort; sc.Start(); while (sc.Running == true) { Console.WriteLine("To stop the Server press ESC"); ConsoleKeyInfo cki = Console.ReadKey(); if (cki.Key == ConsoleKey.Escape) { sc.Stop(); } } Console.WriteLine("Press any Key to close the Program. . ."); Console.ReadKey(); }