Security Policy works with WWW but not with PrefetchSocketPolicy on web port?

I cannot seem to get the security policy to work to allow me to open a connection to SFS.

I put crossdomain.xml into my web root, and I try to prefetch it on port 80, but it basically locks up for a long time (even the timeout doesn't seem to work--it is in milliseconds, right?), before returning false.

However, if I just try to open a WWW connection, it automatically grabs the policy, and continues happily. This leads me to believe I've got it set up correctly.

Here's a sample:

WWW www = new WWW( "http://" + serverIP + "/robots.txt" );
// can see in web server log the request for 
// crossdomain.xml, then robots.txt

if( !Security.PrefetchSocketPolicy( serverIP, 80, 500 ) )
{
  // this always fails, and it takes a long time to fail
  // (more than 500ms), and there are no requests in the web server logs
  Debug.LogError( "Failed to retrieve security policy" );
}

So why would it work for the one, but not the other? Why would there be no access request? Or how can I put a listener on port 843 on a Linux box so I don't need to use the web server?

My understanding is that for connections to sockets you must have a socketPolicyServer on your server listening for connections. If it listens on port 843 then you don't need to use PrefetchSocketPolicy as when you try to make a socket connection unity automatically checks for a policy returned from port 843 of the server you are trying to connect to.

Unity ships with a default socketPolicyServer written in C#. Unfortunately that won't help you with linux (actually I am looking for a linux one too) although linux must have a command ine tool to listen on a port and return an xml file on a received connection. I have used unity supplied socket policy server successfully on a windows server so can confirm that this is what you need. The xml policy file on the root of your server is not checked when a socket connection is requested. That is for HTTP requests and the like.

see:

http://unity3d.com/support/documentation/Manual/Security%20Sandbox.html