code: public static String getRemoteAddress() {
      InetAddress addr = getRemoteIp();
      return (addr == null) ? null : addr.getHostAddress();
    }
docs: Returns remote address as a string when invoked inside an RPC.
  Returns null in case of an error.