Hello
I’ve created a socket server running on a dedicated windows server. From the Flash IDE, or from swf converted to exe, (both these prevent security checks) I can connect to it fine with no problems.
When I upload the swf to a website and access it through a browser I can’t connect. I google the problem and apparently flash sends a “policy file request” to my server at port 843. So I open port 843 and create a new server for this port and I receive “<policy-file-request/>” and a NULL byte after that. When I receive that I send back a policy file string that looks like this:
<?xml version="1.0" encoding="UTF-8"?><cross-domain-policy xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://www.adobe.com/xml/schemas/PolicyFileSocket.xsd"><allow-access-from domain="*" secure="false"/></cross-domain-policy>
With a NULL byte after that string.
I removed indentation and newlines in case that was what was causing the problem. Both gave the same result though.
Now, according to the output from both my server (running on port 31414) and my port 843 server (the server to handle the request) my flash file connects to both of these, port 843 server sends the policy file, then flash file disconnects from both of these server. I read that flash connects and then disconnects after receiving the policy file but my file never tries to reconnect.
And the strange thing is, my flash file never receives a connection event. So it apparently connects to both servers, and disconnects, but never receives a connect event.
I think you understand what I want so if anyone could shed some light on this it would be greatly appreciated.