public static bool TryGetIpAddress(string text, out IPAddress Ip) { try { Ip = GetIpAddress(text); return true; } catch { Ip = null; return false; } }