public IPEndPoint(long address, int port) { if (!TcpValidationHelpers.ValidatePortNumber(port)) { throw new ArgumentOutOfRangeException(nameof(port)); } _port = port; _address = new IPAddress(address); }