# Policy file troubles

**URL:** <https://forum.kirupa.com/t/policy-file-troubles/326813>\
**Category:** Uncategorized\
**Created:** [January 14, 2012, 12:51am UTC](https://forum.kirupa.com/t/policy-file-troubles/326813 "2012-01-14T00:51:09Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [January 14, 2012, 12:51am UTC](https://forum.kirupa.com/t/policy-file-troubles/326813/1 "2012-01-14T00:51:09Z")

</div>

Hello, :bucktooth: I have been having problems with policy files I personally hate them because I could never get one to work. So I placed this code in my swf:

```auto
System.security.loadPolicyFile("http://www.entracity.web44.net/crossdomain.xml")

System.security.allowDomain( "http://www.entracity.web44.net" ); 

```

and I placed the policy file in my root directory and its using a wild card. Still my swf wont connect to my socket server it just times out can anyone help me please? i’ll consider donating

edit: I figured out the xml on my site wont work because sockets dont work with http so anyone know how I could make a policy server can someone try to give me a mini one I could use that would be awesome. Thanks, Basses.
