Security Domain Issue with Socket Server

Hey everyone,

First post here… been using this as a resource forever!! Thanks in advance for reading.

My site is – I’ve written a PHP socket server which I use to support a small chat as well as a way to see all the other people’s characters in (almost) realtime.

The problem is, the socket server connection works fine locally, but automatically disconnects when viewed from the web.

I am trying to use Port 7777 … could that be the problem?

I’ve tried a whole bunch of stuff… allowScriptAccess = always, tried connecting to the domain name and the IP,,

I also created a crossdomain.xml:

<?xml version="1.0"?>
<!DOCTYPE cross-domain-policy SYSTEM "">
   <site-control permitted-cross-domain-policies="all" />
   <allow-access-from domain="*" />
   <allow-http-request-headers-from domain="*" headers="*" />

Nothing seems to help… although after I did all that, it stopped disconnecting instantly and then taking about 5 seconds to disconnect.