code: public static InetSocketAddress getRpcPortSocketAddress(WorkerNetAddress netAddress) {
      String host = netAddress.getHost();
      int port = netAddress.getRpcPort();
      return new InetSocketAddress(host, port);
    }
docs: Extracts rpcPort InetSocketAddress from Alluxio representation of network address.
  
  @param netAddress the input network address representation
  @return InetSocketAddress