# Socket policy file

**URL:** https://forum.kirupa.com/t/socket-policy-file/234721
**Category:** flash
**Created:** [August 5, 2007, 6:12am UTC](https://forum.kirupa.com/t/socket-policy-file/234721 "2007-08-05T06:12:37Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![mad\_man](https://avatars.discourse-cdn.com/v4/letter/m/58956e/32.png) [@mad\_man](https://forum.kirupa.com/u/mad_man)
#### Post date: [August 5, 2007, 6:12am UTC](https://forum.kirupa.com/t/socket-policy-file/234721/1 "2007-08-05T06:12:37Z")

</div>

hello,  
I ahve written a java socket server to connect my flash clients to. I have my java server send my policy file:  
\<cross-domain-policy\>\<allow-access-from domain=’\*’ to-ports=‘6666’ /\>\</cross-domain-policy\>

whenever it gets a \<policy-file-request /\> . However when i upload my flash client to a website and point the IP adress and port to my server I get a security sandbox violation error:

Error #2048: Security sandbox violation: [[COLOR=#333333]http://rainer.joolo.com/DrawBoard.swf[/COLOR]](http://rainer.joolo.com/DrawBoard.swf) cannot load data from 98.199.\*\*\*.\*\*\*:6666.

The strange thing is that it worked a week ago, and suddenly it stopped working. In the last week my ip has changed, and i had to reinstall flash player. I dont see why installing the latest flash player should give me the error.  
If anyone knows why this could be a problem, please help.
