code: public void init (int socketPolicyPort)
      {
          _acceptor =
              new ServerSocketChannelAcceptor(null, new int[] { socketPolicyPort }, this);
  
          // build the XML once and for all
          StringBuilder policy = new StringBuilder()
              .append("<?xml version=\"1.0\"?>\n")
              .append("<cross-domain-policy>\n");
          // if we're running on 843, serve a master policy file
          if (socketPolicyPort == MASTER_PORT) {
              policy.append("  <site-control permitted-cross-domain-policies=\"master-only\"/>\n");
          }
  
          policy.append("  <allow-access-from domain=\"*\" to-ports=\"*\"/>\n");
          policy.append("</cross-domain-policy>\n\n");
  
          try {
              _policy = policy.toString().getBytes("UTF-8");
          } catch (UnsupportedEncodingException e) {
              throw new IllegalStateException("UTF-8 encoding missing; this vm is broken", e);
          }
          start();
      }
docs: Accepts xmlsocket requests on <code>socketPolicyPort</code> and responds any host may
  connect to any port on this host.