code: public static InetSocketAddress getBindAddress(ServiceType service, AlluxioConfiguration conf) {
      int port = getPort(service, conf);
      assertValidPort(port);
      return new InetSocketAddress(getBindHost(service, conf), getPort(service, conf));
    }
docs: Helper method to get the bind hostname for a given service.
  
  @param service the service name
  @param conf Alluxio configuration
  @return the InetSocketAddress the service will bind to