For socket servers things are a bit different.   You will need to have the
flash policy file served off of a socket server itself.

Check this link
http://www.adobe.com/devnet/flashplayer/articles/socket_policy_files.html
I have used an open source policy server built for this.  You can follow
the steps here:
https://code.google.com/archive/p/flashpolicyd/wikis/Introduction.wiki

The code to run is here:
https://github.com/ripienaar/flashpolicyd

Hope this helps.

Thanks,
Om


On Jul 24, 2016 1:34 PM, "Nicholas Kwiatkowski" <
nicholaskwiatkow...@gmail.com> wrote:

> Is the crossdomain.xml on the same domain/ip as the IP you are trying to
> connect to?
>
> Rarely do you need to do the Security.allowDomain() or
> allowInsecureDomain() methods anymore.  The security policies are pretty
> much now that you /need/ to be hosting the crossdomain file on the same
> server, domain and ip (port can be different), otherwise you will run afowl
> the security policy of not only the flash player, but the browser as well.
>
> -Nick
>
> On Thu, Jul 21, 2016 at 4:49 PM, Anton Bondarenko <divla...@gmail.com>
> wrote:
>
> > Hello. Cna anybody share with his socket experience.
> > For 2 days im trying to make sockets and no results
> > always 2031 ioerror and 2048 secureerror
> >
> > added
> > Security.loadPolicyFile(url to crossdomain.xml);
> > Security.allowDomain("*");
> > Security.allowInsecureDomain(("*");
> >
> > got secureerror from Security.allow with 3207 error but couldn understand
> > what about debug it means and what to do and when it works.
> >
> > crossdomain.xml in the server root.
> > <?xml version="1.0"?>
> > <!DOCTYPE cross-domain-policy SYSTEM "
> > http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd";>
> > <cross-domain-policy>
> >  <allow-access-from domain="*" />
> >  <site-control permitted-cross-domain-policies="master-only"/>
> > </cross-domain-policy>
> >
> > Thanks for any comments
> > --
> > //-------------------------
> > Best Regards,
> > Anton Bondarenko
> >
>

Reply via email to