Blue Box and Unity Web Player

Hello,

I haven’t found any solution on Google so I expose my issue here :

I’m trying to make blue box working with a simple web player demo, who is trying to connect to a SFS Pro, protected by a firewall.

On a standalone it’s working :
The first request to SFS Pro on the default port (9339) timed out, because I haven’t set an exception in my firewall, so it switch to bluebox. Then, the connection to bluebox works fine.

In a webplayer it’s an other history :
The first request is send, SFS says “Trying to connect”, and after nothing…no time out…

Here is my code for the connection :

void Awake() {
		print("Start");
		Security.PrefetchSocketPolicy(ip, port);
		Security.PrefetchSocketPolicy(ip, blueboxport); 
		if( ! SmartFox.IsInitialized() ) {
			try {
				smartFox = SmartFox.Connection = new SmartFoxClient(debug);
				smartFox.smartConnect = true;
				smartFox.httpPort = blueboxport;
				AddSfsEvent();
				smartFox.Connect(ip, port);
			}
			catch (Exception e) {
				errorMessage = e.ToString();
				print( errorMessage);
			}
		}
	}

Is anybody can help me?

Thanks,
Sennin

What happens if you leave out the prefetch to SFS and only leave the one to the BlueBox ?

Same issue, SFS not responding and no time out.

I tried to set the connection time out with “socket Connection Timeout”, seen on the SFS documentation, but apparently this attribute is not in the librairie :confused:

You should post this on the SFS forum and see what they say.
I have no experience with bluebox.

Yes it’s already done, thanks for the advice.

It’s seems that blue box is not the problem, apparently, the connection to smartfox with a web player never time out, so nothing append…very strange