public bool Connect(string host, int port) { try { client = new TcpClient(); client.Connect(host, port); } catch (Exception e) { Log.Write("Cought an exception during the Connect() method:" + e.ToString()); return false; } return true; }