code: public ChannelFuture connect(SocketAddress remoteAddress) {
          if (remoteAddress == null) {
              throw new NullPointerException("remoteAddress");
          }
  
          validate();
          return doResolveAndConnect(remoteAddress, config.localAddress());
      }
docs: Connect a {@link Channel} to the remote peer.