I have my game set up in two computers a PC and a Mac. The server is in the PC, (port 9339), as is the Apache web server.
Up to today, everything has been working 100% OK, until I had the rotten idea of changing the flash player in the Mac, and disaster struck: I cannot use my game from any browser in the Mac, it stops at "Connecting....." and then says "Cannot connect".
I can, however connect perfectly well if I execute the .swf file in the Mac, no problem there. Also, it works OK from all browsers in the PC and external users can connect OK via the web, I don't even know what browser they're using.
As it says in the docs, I've tried putting a crossdomain.xml file in the /htdocs folder in the Apache2.2 folder (where my .swf files are), as follows:
Code: Select all
<?xml version="1.0"?>
<!DOCTYPE cross-domain-policy SYSTEM "http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd">
<cross-domain-policy>
<allow-access-from domain="*" />
</cross-domain-policy> Code: Select all
System.security.loadPolicyFile("xmlsocket://192.168.0.11:9339")
Maybe I'm confusing the internal and external addresses in all these statements. Internally, my IPs are :
for the PC 192.168.0.11;
for the Mac 192.168.0.10;
externally my address is 82.236.98.22;
the connect statement in the .swf file is:
Code: Select all
var IP:String = "82.236.98.22"
var port:Number = 9339
var zone:String ="arts"
smartfox.connect(ip,port)Code: Select all
<SmartFoxConfig>
<ServerSetup>
<ServerIP>192.168.0.11</ServerIP>
<ServerPort>9339</ServerPort>
<AutoSendPolicyFile>true</AutoSendPolicyFile>
<MaxUserIdleTime>1800</MaxUserIdleTime>
<PolicyAllowedDomains>
<AllowedDomain>127.0.0.1</AllowedDomain>
<AllowedDomain>192.168.0.10</AllowedDomain>
<AllowedDomain>192.168.0.11</AllowedDomain>
</PolicyAllowedDomains>I'm really at the end of my wits; can anybody please explain what is going on?
Thank you,
Mariana