Currently I'm tried to make BlueBox work but without success.
The SmartFox server listens on port 9933 and Jetty is on port 443. A unity web player client, which is behind a proxy, is trying to connect to the server. We force the client to use BlueBox (by trying a first socket connection on a wrong port) but an error occurs :
Code: Select all
Http error creating http connection: System.Security.SecurityException: Unable to connect, as no valid crossdomain policy was found
at System.Net.Sockets.Socket.Connect_internal (IntPtr sock, System.Net.SocketAddress sa, System.Int32& error, Boolean requireSocketPolicyFile) [0x00000] in <filename unknown>:0
at System.Net.Sockets.Socket.Connect (System.Net.EndPoint remoteEP, Boolean requireSocketPolicy) [0x00000] in <filename unknown>:0
at System.Net.Sockets.Socket.Connect (System.Net.EndPoint remoteEP) [0x00000] in <filename unknown>:0
at System.Net.Sockets.Socket.Connect (System.Net.IPAddress address, Int32 port) [0x00000] in <filename unknown>:0
at Sfs2X.Http.SFSWebClient.UploadValuesAsync (System.Uri uri, System.String paramName, System.String encodedData) [0x00000] in <filename unknown>:0
UnityEngine.Debug:Log(Object)
ConnectionManager:OnConnection(BaseEvent) (at Assets/Scripts/Server/ConnectionManager.cs:500)
Sfs2X.Core.EventDispatcher:DispatchEvent(BaseEvent)
Sfs2X.SmartFox:ProcessEvents()
ConnectionManager:FixedUpdate() (at Assets/Scripts/Server/ConnectionManager.cs:144)
Since the proxy allows HTTP traffic but doesn't allow a connection using Security.PrefetchSocketPolicy to get the crossdomain policy, how can we make a BlueBox connection with our server?
Do we need a TCP socket connection to get the crossdomain policy in order to make BlueBox work with Unity web player?
Another question : does the SmartFox .NET API use the browser/system proxy settings when trying a socket connection?
Thanks.