SmartFoxServer 2X and the RightScale platform
Re: SmartFoxServer 2X and the RightScale platform
I don't know, I would need more details.
What does the crossdomain file looks like? Is the server reachable via socket?
Is there evidence that a connection is made? If you watch the log files while the client is connecting you will see that a Session is opened and the closed immediately after showing that the WebPlayer has connected and fetched the policy.
And... maybe redundant question, are you testing with the WebPlayer?
What does the crossdomain file looks like? Is the server reachable via socket?
Is there evidence that a connection is made? If you watch the log files while the client is connecting you will see that a Session is opened and the closed immediately after showing that the WebPlayer has connected and fetched the policy.
And... maybe redundant question, are you testing with the WebPlayer?
Re: SmartFoxServer 2X and the RightScale platform
in http://54.254.210.144:8080/crossdomain.xml :Lapo wrote: What does the crossdomain file looks like?
Code: Select all
<cross-domain-policy>
<allow-access-from domain="*"/>
</cross-domain-policy>port 8080 is reachableLapo wrote: Is the server reachable via socket?
I'm not sure how to check it, but for sure the policy is not being fetched. This code:Lapo wrote: Is there evidence that a connection is made?
If you watch the log files while the client is connecting you will see that a Session is opened and the closed immediately after showing that the WebPlayer has connected and fetched the policy.
Code: Select all
Log("START");
if (!Security.PrefetchSocketPolicy(currentServerName, serverPolicyPort, 10000))
{
Log("END 1");
LogError("Security Exception. Policy file loading failed!: http://{0}:{1}/crossdomain.xml", currentServerName, serverPolicyPort);
}
Log("END 2");
Code: Select all
(Filename: /Applications/buildAgent/work/d63dfc6385190b60/artifacts/WebPlayerGenerated/UnityEngineDebug.cpp Line: 49)
SFSManager: START
(Filename: /Applications/buildAgent/work/d63dfc6385190b60/artifacts/WebPlayerGenerated/UnityEngineDebug.cpp Line: 49)
Platform assembly: /Library/Internet Plug-Ins/Unity Web Player.plugin/Contents/Frameworks/ReleaseUnityPlayer3.x.x-i386.bundle/Contents/Resources/CrossDomainPolicyParser.dll (this message is harmless)
SocketPolicyClient1: Incoming GetPolicyStreamForIP
SocketPolicyClient1: About to BeginConnect to 54.254.210.144:8080
SocketPolicyClient1: About to WaitOne
SocketPolicyClient1: Socket connected
SFSManager: END 1
(Filename: /Applications/buildAgent/work/d63dfc6385190b60/artifacts/WebPlayerGenerated/UnityEngineDebug.cpp Line: 49)
Security Exception. Policy file loading failed!: http://54.254.210.144:8080/crossdomain.xml
(Filename: /Applications/buildAgent/work/d63dfc6385190b60/artifacts/WebPlayerGenerated/UnityEngineDebug.cpp Line: 49)
SFSManager: END 2
(Filename: /Applications/buildAgent/work/d63dfc6385190b60/artifacts/WebPlayerGenerated/UnityEngineDebug.cpp Line: 49)
YesLapo wrote: And... maybe redundant question, are you testing with the WebPlayer?
Re: SmartFoxServer 2X and the RightScale platform
There is a misunderstanding.
The socket policy file located under SFS2X/config/crossdomain.xml is not meant to be reachable via HTTP. It is served via socket on port 9933 (default).
Pointing your browser to http://<ip-address>:8080/SFS2X/config/crossdomain.xml will certainly return an error because such path doesn't exist in the webserver's root.
I hope this is clear.
You can run the simple telnet test described here:
http://docs2x.smartfoxserver.com/Gettin ... leshooting
thanks
The socket policy file located under SFS2X/config/crossdomain.xml is not meant to be reachable via HTTP. It is served via socket on port 9933 (default).
Pointing your browser to http://<ip-address>:8080/SFS2X/config/crossdomain.xml will certainly return an error because such path doesn't exist in the webserver's root.
I hope this is clear.
I was asking if the TCP socket port is open. Default value is 9933 if you haven't changed it.arklay wrote:port 8080 is reachableLapo wrote:Is the server reachable via socket?
You can run the simple telnet test described here:
http://docs2x.smartfoxserver.com/Gettin ... leshooting
thanks
Re: SmartFoxServer 2X and the RightScale platform
There is connectivity to port 9933:
Code: Select all
$ telnet 54.255.177.30 9933
Trying 54.255.177.30...
Connected to ec2-54-255-177-30.ap-southeast-1.compute.amazonaws.com.
Escape character is '^]'.
Re: SmartFoxServer 2X and the RightScale platform
Something is strange. The client is not getting the policy from port 9933:
Why?
Port 8080 can be used by the client if two conditions are met:
1) The useBlueBox is set to true in the client configuration
2) If the connection to port 9933 fails
I would expect the client to load the policy from port 9933 and I'd suggest to revise the connection settings.
Code: Select all
i386.bundle/Contents/Resources/CrossDomainPolicyParser.dll (this message is harmless)
SocketPolicyClient1: Incoming GetPolicyStreamForIP
SocketPolicyClient1: About to BeginConnect to 54.254.210.144:8080Port 8080 can be used by the client if two conditions are met:
1) The useBlueBox is set to true in the client configuration
2) If the connection to port 9933 fails
I would expect the client to load the policy from port 9933 and I'd suggest to revise the connection settings.
Re: SmartFoxServer 2X and the RightScale platform
aaagghhhh!!! you are completely right I didn't change the port for the policy! let me thank you before killing myself!

Re: SmartFoxServer 2X and the RightScale platform
I apologize in advance for this N00B request, but I'm having a hard time figuring out how to upload extension files to the server...
Is there a dummy tutorial somewhere?
Is there a dummy tutorial somewhere?
Re: SmartFoxServer 2X and the RightScale platform
Before version 2.9 you should have used an FTP to upload the jar files to the right folder.
With the latest version (2.9.0) we have added a remote upload feature in the AdminTool itself. You can read more about it here:
http://docs2x.smartfoxserver.com/Gettin ... ionManager
With the latest version (2.9.0) we have added a remote upload feature in the AdminTool itself. You can read more about it here:
http://docs2x.smartfoxserver.com/Gettin ... ionManager
Re: SmartFoxServer 2X and the RightScale platform
That's awesome! Thanks!