My question is related to the one asked here - Flash socket server only works on local machine
My flash application works fine running on a local apache server on my local machine but when I try and connect to a PHP socket server running on my Amazon server it fails to connect. I think my problem is related to the crossdomain file, but I can't find much information on it.
Here is my code.
AS3:
var host:String = "x.x.x.x"; // substituted for actual IP of website
var port:uint = 9999;
Security.allowDomain("*");
Security.loadPolicyFile("http://www.example.com/crossdomain.xml"); // substituted for actual domain name
socket.connect(host, port);
PHP:
$ip = '0.0.0.0';
$port = 9999;
Crossdomain:
<cross-domain-policy>
<site-control permitted-cross-domain-policies="master-only"/>
<allow-access-from domain="*.example.com"/>
</cross-domain-policy>
Let me know if I need to add any further information.
Thanks