public void stop(HostAndPort hostAndPort) throws java.net.ConnectException {
    try {
      ShutdownRequest request = new ShutdownRequest();
      requestToServer(hostAndPort, request, DEFAULT_REQUEST_TIMEOUT, true);
    } catch (java.net.ConnectException ce) {
      // must not be running, rethrow so the caller can handle.
      // In most cases this Exception should be ignored.
      throw ce;
    } catch (Exception ex) {
      logger.error(
          "TcpClient.stop(): exception connecting to locator " + hostAndPort + ex);
    }
  }
Stops the TcpServer running on a given host and port
geode-tcp-server/src/main/java/org/apache/geode/distributed/internal/tcpserver/TcpClient.java