Hey everyone,
First post here… been using this as a resource forever!! Thanks in advance for reading.
My site is www.thankyoudesign.com – 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, System.security.allowDomain, System.security.allowInsecureDomain.
I also created a crossdomain.xml:
<?xml version="1.0"?>
<!DOCTYPE cross-domain-policy SYSTEM "http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd">
<cross-domain-policy>
<site-control permitted-cross-domain-policies="all" />
<allow-access-from domain="*" />
<allow-http-request-headers-from domain="*" headers="*" />
</cross-domain-policy>
Nothing seems to help… although after I did all that, it stopped disconnecting instantly and then taking about 5 seconds to disconnect.