code: private static void resolveServerConfig(ServerConfig serverConfig) {
          // 绑定到指定网卡 或全部网卡
          String boundHost = serverConfig.getBoundHost();
          if (boundHost == null) {
              String host = serverConfig.getHost();
              if (StringUtils.isBlank(host)) {
                  host = SystemInfo.getLocalHost();
                  serverConfig.setHost(host);
                  // windows绑定到0.0.0.0的某个端口以后，其它进程还能绑定到该端口
                  boundHost = SystemInfo.isWindows() ? host : NetUtils.ANYHOST;
              } else {
                  boundHost = host;
              }
              serverConfig.setBoundHost(boundHost);
          }
  
          // 绑定的端口
          if (serverConfig.isAdaptivePort()) {
              int oriPort = serverConfig.getPort();
              int port = NetUtils.getAvailablePort(boundHost, oriPort,
                  RpcConfigs.getIntValue(RpcOptions.SERVER_PORT_END));
              if (port != oriPort) {
                  if (LOGGER.isInfoEnabled()) {
                      LOGGER.info("Changed port from {} to {} because the config port is disabled", oriPort, port);
                  }
                  serverConfig.setPort(port);
              }
          }
      }
docs: 确定下Server的host和port
  
  @param serverConfig 服务器配置