I've set up a server using the ServerSocket
class in the AIR framework, and the client (.swf) connects fine through localhost, but when I upload the finished server application to a remote environment it refuses to connect at all. Policy files wont even load.
I've added both the policy file port (843) and the port of my applications main ServerSocket
(6644) to the firewall settings and allowed both Inbound and Outbound connections to them.
I have checked to make sure that I changed the IP to which flash connects to the public IP of my server, and with the firewall settings in place, I don't understand why it wont connect.
This is the first time I've worked with Sockets in the AIR framework, but I can't work out why it wouldn't work if it worked fine on a localhost connection (running on my laptop), especially after the ports have been allowed via the firewall settings.
Here is also the policy file that the server sends, which should definitely allow access to the server, as far as I'm aware (worked locally, so shouldn't be any different):
public var policy:String = '<?xml version="1.0"?><cross-domain-policy>' +
'<site-control permitted-cross-domain-policies="master-only"/>' +
'<allow-access-from domain="*" to-ports="6644" />' +
'</cross-domain-policy>\x00';
Anyone got any ideas as to why it isn't working?
securityErrorHandler: Error #2048: Security sandbox violation: