Flash Crossdomain Policy files

Ok so I have my Flash application connecting to my PHP socket script on port 8080. I have a crossdomain policy file on my server at myip/crossdomain.xml. I just want to get this working for now so for now it looks like this:

<?xml version=“1.0”?>
<cross-domain-policy>
<allow-access-from domain="" secure=“false to-ports=”"></allow-access-from>
</cross-domain-policy>

My socket script also writes back if Flash for some reason tries looking for a polciy file there, this is how it writes back:

$policy_file = “”;
$policy_file .= “<cross-domain-policy>”;
$policy_file .= ‘<allow-access-from domain="*" to-ports=“8080” secure=“false”/>’;
$policy_file .= “</cross-domain-policy>”;

            write_to_socket($node, $policy_file);

Two problems. One is that for some reason Flash keeps trying to find the policy file at my destination socket instead of at myip/crossdomain.xml . Problem 2 is that it still won’t give me access even with the data my socket script sends it.

Any ideas?