Trouble getting Flash socket policy file to work.
Posted
by Alex
on Stack Overflow
See other posts from Stack Overflow
or by Alex
Published on 2010-05-30T19:55:41Z
Indexed on
2010/05/30
20:02 UTC
Read the original article
Hit count: 310
Basically I'm using Flash to connect to a Java server.
Despite my Java application replying to the , in the Flash debug log it lists (not sure about the order as there are lots):
* Security Sandbox Violation *
Connection to 192.168.1.86:4049 halted - not permitted from http://127.0.0.1:8888/Current/wander.swf
Warning: Timeout on xmlsocket://192.168.1.86:4049 (at 3 seconds) while waiting for socket policy file. This should not cause any problems, but see http://www.adobe.com/go/strict_policy_files for an explanation.
Error: Request for resource at xmlsocket://192.168.1.86:4049 by requestor from http://127.0.0.1:8888/Current/wander.swf is denied due to lack of policy file permissions.
What I don't understand is, the server (port 4049) receives the request, outputs the policy file and then closes the connection, surely it shouldn't time out?
The policy file I'm using is:
<?xml version="1.0"?>
<cross-domain-policy><allow-access-from domain="*" to-ports="*" />
</cross-domain-policy>
© Stack Overflow or respective owner