code: protected void connect() throws UnknownHostException, IOException {
  		if (sock == null) {
  			sock = new Socket(hostname, port);
  			sock.setKeepAlive(true);
  			sock.setTcpNoDelay(true);
  			sock_out = sock.getOutputStream();
  			sock_in = sock.getInputStream();
  			sequenceNr = 0;
  			_handshake();
  
  			if(Config.METADATA) {
  				// obtain metadata if this feature is enabled, and the metadata is not known yet
  				if(!pyroMethods.isEmpty() || !pyroAttrs.isEmpty()) {
  					// not checking _pyroONeway because that feature already existed and it is not yet deprecated
  					// log.debug("reusing existing metadata")
  				} else {
  					getMetadata(this.objectid);
  				}
  			}
  		}
  	}
docs: (re)connect the proxy to the remote Pyro daemon.