Socket server policy file

Hi, first time member but long time viewer on this site. I have a socket server made on java and the client made on flash as2 the client is on a sub domain from weebly I made and when I turn on the server by opening the batch file it shows a connection is made to the client on the site but it disconnects its self like 3 seconds later i’m assuming its because I don’t have a policy file nor do I know how to make one I’ve searched up many tutorials that are very self explanatory but I still don’t understand :stuck_out_tongue: can someone modify this for me and make me a policy file, Thanks. here’s the download:

(I take no credit for making the server or fla it was open source and I’m using it to learn how to have multiplayer functions.)