PDA

View Full Version : Help in regards to sockets servers and policies


lLl
10-31-2008, 02:21 AM
Hi,

I'm using Smart Fox Server Lite and using their examples (chat)...
SmartFoxServer is installed on my desktop and I have properly change the server configurations and the ip config inside the chat.swf file.

I also added this line of code

System.security.loadPolicyFile("xmlsocket://myip:myport")
// myip and myport replaced by real ip and port

inside chat.swf before it connects.

I started smartfoxserver and tested chat.swf its working and connecting just fine but when I uploaded chat.swf into a different webserver host and test it. I can't connect to smartfoxserver running from my desktop. The webserver has a crossdomain policy file but it still doesn't work.

My guess it that I'm going to need a Flash Policy file set up...
Am I on the right track?

What I'm trying to do is that the Smart fox server running on my desktop and the flash .swf file is located on a webserver hosted on a different machine connects successfully.

Its my first time, is it possible?

Thanks in advance