Did you place 
<cross-domain-policy>
   <allow-access-from domain="*.yourdomain.com"/>
</cross-domain-policy>

in the crossdomain.xml in your server root (same place where all your
SWF are hosted)?

This should allow further communications with yourdomain.

Cheers,
Dmitri.


--- In flexcoders@yahoogroups.com, "Ivo" <[EMAIL PROTECTED]> wrote:
>
> Hello all,
> 
> I am still trying to get this master policy server setup sorted out. I
> have tested couple different policy servers:
> 
> http://blog.zappmonkey.com/2008/01/13/tcltk-flash-socket-policy-server/
>
http://www.adobe.com/devnet/flashplayer/articles/socket_policy_files.html
> 
> and they appear to work as expected when tested from the command-line:
> 
> perl -e 'printf "<policy-file-request/>\0"' | nc mysite.com 843
> 
> <?xml version="1.0"?>
> <!DOCTYPE cross-domain-policy SYSTEM
> "http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd";>
> <cross-domain-policy>
>         <site-control permitted-cross-domain-policies="all"/>
>         <allow-access-from domain="*" to-ports="6666"/>
> </cross-domain-policy>
> 
> I still see no evidence that the Flash Player is trying to get a
> policy file from port 843 tho. Nothing noted in the policylog.txt &
> using tcpdump I dont see anything except an attempt to get
> http://mysite:6666/crossdomain.xml .
> 
> As noted in earlier messages I have the line
> 
> Security.loadPolicyFile('xmlsocket://mysite.com:843');
> 
> Anyone had to set up a policy server and can give me ideas on how to
> pin the issue?
> 
> Thanks,
> 
> - Ivo
> 
> 
> 
> 
> --- In flexcoders@yahoogroups.com, Jesús Iglesias <jesus@> wrote:
> >
> > Hi!!
> > 
> >  
> > 
> > You have to make a socket policy master SERVER, it's not just an http
> > request to port 843. 
> > 
> > You need a server listening on port 843 responding to requests but
> not as a
> > http protocol.
> > 
> >  
> > 
> > Here you have one that is working fine:
> > 
> >
http://blog.zappmonkey.com/2008/01/13/tcltk-flash-socket-policy-server/
> > 
> >  
> > 
> >  
> > 
> > Jesus Iglesias
> > 
> >  <http://blog.osusnet.com> http://blog.osusnet.com
> > 
> >  
> > 
> >  
> > 
> >  
> > 
> > De: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED]
> En nombre
> > de ivo
> > Enviado el: martes, 15 de abril de 2008 6:01
> > Para: flexcoders@yahoogroups.com
> > Asunto: Re: [flexcoders] Loading socket policy files q
> > 
> >  
> > 
> > I am getting sick of re-reading the Socket Policy update doc.
> > 
> > Seems the Flash Player is always failing to load the master socket
> policy. I
> > see in policylog.txt:
> > 
> > Warning: Failed to load policy file from
> > http://mysite.com:6666/crossdomain.xml
> > Error: Request for resource at
http://mysite.com:6666/accounts/login by
> > requestor from http://192.168.1.100/main.swf is denied due to lack
> of policy
> > file permissions.
> > 
> > Sniffing the http I dont see anywhere a request for the master
> socket policy
> > file at http://mysite.com:843 . The logging statements show that the
> line
> > 
> > Security.loadPolicyFile('xmlsocket://mysite.com:843');
> > 
> > is getting hit tho.
> > 
> > going to http://mysite.com:843 returns an xml socket policy file:
> > 
> > curl -v http://mysite.com:843
> > 
> > < HTTP/1.1 200 OK
> > < Date: Tue, 15 Apr 2008 03:55:09 GMT
> > < Server: Apache
> > < Last-Modified: Tue, 01 Apr 2008 21:32:45 GMT
> > < ETag: "10c81a9-119-47f2a9fd"
> > < Accept-Ranges: bytes
> > < Content-Length: 281
> > < Connection: close
> > < Content-Type: application/xml
> > < 
> > <?xml version="1.0"?>
> > http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd";> 
> > <cross-domain-policy>
> >   <site-control permitted-cross-domain-policies="master-only"/>
> >   <allow-access-from domain="*" to-ports="6666"/>
> > </cross-domain-policy>
> > * Closing connection #0
> > 
> > 
> > So what am I missing?
> > 
> > - Ivo
> > 
> > ----- Original Message ----
> > From: ivo <cervantes_vive@>
> > To: flexcoders@yahoogroups.com
> > Sent: Monday, April 14, 2008 3:04:00 PM
> > Subject: Re: [flexcoders] Loading socket policy files q
> > 
> > That should have been...(http://mysite. com:843/crossdomain . xml
> > <http://mysite.com:6666/crossdomain.xml> ).
> > 
> > also, I dont have control of the server so I cannot place a socket
> policy
> > file at port 6666
> > 
> > Thanks,
> > 
> > - Ivo
> > 
> > ----- Original Message ----
> > From: ivo <cervantes_vive@ yahoo.com>
> > To: FlexCoders <[EMAIL PROTECTED] ups.com>
> > Sent: Monday, April 14, 2008 2:50:59 PM
> > Subject: [flexcoders] Loading socket policy files q
> > 
> > My app is hosted on a server that has a master Socket policy file
served
> > from port 843 (http://mysite. <http://mysite.com:6666/crossdomain.xml>
> > com:6666/ crossdomain. xml):
> > 
> > <cross-domain- policy>
> > <site-control permitted-cross- domain-policies= "master-only" />
> > <allow-access- from domain="*" to-ports="6666" />
> > </cross-domain- policy>
> > 
> > In the code I explicitly load the master policy file, yet the player
> still
> > tries to load
> > 
> > http://mysite. <http://mysite.com:6666/crossdomain.xml>  com:6666/
> > crossdomain. xml
> > 
> > And fails when it doesnt find one preventing me from communicating
> with the
> > service. Is there a step I am missing?
> > 
> > Thanks,
> > 
> > - Ivo
> >
>


Reply via email to