I've tried several times and the browser keeps timing out. It makes me think that Flash is too and thus it think the policy file isn't there.
I would try using UrlLoader to load the policy file just to make sure Flash can do it. You might also try a hidden IFrame in your wrapper that fetches the policy file. Maybe if you can get it into the browser cache, Flash will be able to pick it up in time. Also try delaying the socket connect so the policy file has plenty of time to load. I talked to the Flash Player engineer who is responsible and he said an HTTP fetch should be ok so you're doing it the right way, I just think Flash doesn't see the file in time. ________________________________ From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of Rogerio Gonzalez Sent: Thursday, September 20, 2007 8:33 PM To: [email protected] Subject: Re: [flexcoders] Sandbox/Crossdomain problem on connecting Socket with webserver on port 6680 I don´t think so. Your browser probably can´t get to it because to many "hups". It is a test server on a 200kbps connection here in Brazil :) But try again. I can access this address from others ips, without problemns, so I really don´t think it is a problem with firewall. Anyway, do you have a real example on how supose to be the right way to do it? The only example that I find was that one with xmlsocket protocol, and even this is with port 80. Regards and thanks for your attention Rogério Gonzalez On 9/20/07, Alex Harui <[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> > wrote: My browser couldn't get to it. Maybe Flash can't get to it either. Is there a firewall or other security? ________________________________ From: [email protected] [mailto: flexcoders@ <mailto:flexcoders@> yahoogroups.com <http://yahoogroups.com> ] On Behalf Of Rogerio Gonzalez Sent: Thursday, September 20, 2007 4:23 PM To: [email protected] Subject: Re: [flexcoders] Sandbox/Crossdomain problem on connecting Socket with webserver on port 6680 Hi there, Sorry the delay. You can access the crossdomain by this URL: http://server.decaedro.net:6680/crossdomain.xml <http://server.decaedro.net:6680/crossdomain.xml> The service is on: server.decaedro.net:6677 <http://server.decaedro.net:6677> Thanks! Rogério Gonzalez On 9/18/07, Alex Harui < [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> > wrote: So, where can we go to see the crossdomain.xml file? ________________________________ From: [email protected] [mailto: flexcoders@ <mailto:flexcoders@> yahoogroups.com <http://yahoogroups.com> ] On Behalf Of Rogerio Gonzalez Sent: Tuesday, September 18, 2007 5:42 AM To: [email protected] Subject: Re: [flexcoders] Sandbox/Crossdomain problem on connecting Socket with webserver on port 6680 In my case, I opened 6680 and 6677 for use 6680 to the webserver, and 6677 to the Telnet server. For connect, I am using: var mySocket:Socket = new Socket("subdomain.domain.com <http://subdomain.domain.com> ",6677) Regards, Rogério On 9/18/07, Alex Harui <[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> > wrote: Hmm, maybe I missed something here... Port 6680 is generally open? What does the crossdomain.xml file look like on the server at that port? What url are you using to open the socket? ________________________________ From: [email protected] [mailto: flexcoders@ <mailto:flexcoders@> yahoogroups.com <http://yahoogroups.com> ] On Behalf Of Rogerio Gonzalez Sent: Monday, September 17, 2007 3:06 PM To: [email protected] Subject: Re: [flexcoders] Sandbox/Crossdomain problem on connecting Socket with webserver on port 6680 Yes, if I have access to the port 80. But in my case, I don´t have, because of that, I try to use the xmlsocket protocol, but it don´t work. Regards, Rogério On 9/17/07, Alex Harui <[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> > wrote: I think you want to load the policy file w/o a port so it uses a simple HTTP fetch. Security.loadPolicyFile(" http://servico.servidor.com/crossdomain.xml <http://servico.servidor.com:6680/crossdomain.xml> "); The policy file should then allow access to port 6680 <allow-access-from domain="*" to-ports="6680" /> ________________________________ From: [email protected] [mailto: flexcoders@ <mailto:flexcoders@> yahoogroups.com <http://yahoogroups.com> ] On Behalf Of Rogerio Gonzalez Sent: Monday, September 17, 2007 10:06 AM To: [email protected] Subject: [flexcoders] Sandbox/Crossdomain problem on connecting Socket with webserver on port 6680 Hello everybody. I am developing a system for use of sockets to a telnet server on port 6677. Locally, everything goes fine, even creating a projector(exe). But when it goes online, it don´t connect because some kind of crossdomain error. The problem is that I don´t have access to the 80 port of the server, so my webserver is on 6680 port. I try use: Security.loadPolicyFile("http://servico.servidor.com:6680/crossdomain.xml <http://servico.servidor.com:6680/crossdomain.xml> "); And also: Security.loadPolicyFile("xmlsocket://servico.servidor.com:6680/crossdomain.xml"); But, for some reason, he keeps giving me the sandbox error. I did several alterations like: Security.allowDomain(host +":6680") Security.allowInsecureDomain(host +":6680"); Security.loadPolicyFile("xmlsocket://"+ host +":6680/crossdomain.xml"); Security.loadPolicyFile("http://"+ host +":6680/crossdomain.xml"); But still, nothing. Somebody have any idea? Regards! Rogério Gonzalez

