1 Reply Latest reply on Feb 6, 2008 11:52 AM by Mitek17

    XMLSocket Hell

    AJ212
      I am attempting to connect from my flex application to localhost:10000. I have my server listening on port 10000, It accepts connections and will respond to <policy-file-request/>

      In which I return

      <?xml version="1.0"?><cross-domain-policy><site-control permitted-cross-domain-policies="all"/><allow-access-from domain="*" to-ports="*" /></cross-domain-policy>

      My crossdomain.xml looks like:

      <cross-domain-policy>
      <allow-access-from domain="*" to-ports="*"/>
      <allow-access-from domain="localhost" to-ports="*"/>
      <allow-access-from domain="127.0.0.1" to-ports="*"/>
      </cross-domain-policy>

      I modified my mm.cfg
      PolicyFileLog=1 # Enables policy file logging
      PolicyFileLogAppend=1 # Optional; do not clear log at startup


      To permit logging,

      I get this in the log file.
      OK: Root-level SWF loaded:
      OK: Policy file accepted:


      In my swf, I call
      Security.loadPolicyFile("xmlsocket://localhost:10000");

      I then try to connect to localhost, 10000

      I am unable to connect. I think this is because of new security policies. Please help.