public bool Open(string domain, int port) { try { client.Connect(domain, port); open = client.Connected; } catch { } //Fail silently as no logging is implemented return(open); }