Xmlsocket and policy-file-request

I have a chat server written in Java listening on port 6000 and a client app(using an xmlsocket) in Flash 9. I get these <policy-file-request/>. I understand the purpose and I read the one solution about creating a server on port 843 and serving a master policy file but since I do not have total control over our hosting I cannot use port 843.
I also tried replying to the request with “<cross-domain-policy><allow-access-from domain=’’ to-ports=’’/></cross-domain-policy>” + “\0” but nothing happens.
The other really strange thing is that using Firefox the file request waits for the response and does nothing…but in IE7 the file request goes through then it continues to work even with no response, I can send/receive using the socket without problem.
Does anyone know a good way to ‘satisfy’ the file request using the Java server listening on port 6000?
Big thanks in advance.

I have same problem. Do you find any solution?

Thanks

Wow…you’re the only person I’ve seen so far with the same problem. I found that if I sent the following:
"<cross-domain-policy><allow-access-from domain=’’ to-ports=’’/></cross-domain-policy>" + “\0” before doing any readLine on the socket it works…but if I try and read first Flash just seems to sit there waiting.
Hope this helps.

look at this link. it has an example for php but it is the same for other langs.
just send the $policy_file at the first time when a client connect.

http://board.flashkit.com/board/showthread.php?t=757231