static void Main(string[] args) { var listener = new TcpListener(IPAddress.Loopback, 8080); try { listener.StartAsync(Proxy.ProcessClient); } catch (NotSupportedException) { Console.WriteLine("Your system does not support some operations required for this application."); } Console.ReadKey(); listener.Stop(); }