public void Connect(IPAddress addr, int port)
{
if (addr == null)
throw new ArgumentNullException("addr");
if (port < IPEndPoint.MinPort || port > IPEndPoint.MaxPort)
throw new ArgumentOutOfRangeException("port");
Connect(new IPEndPoint(addr, port));
}