BlueBox conenction not starting

Submit all your BlueBox related questions or report a bug here!

Moderators: Lapo, Bax

Sherife
Posts: 23
Joined: 31 Aug 2011, 09:03
Location: United Kingdom
Contact:

BlueBox conenction not starting

Postby Sherife » 12 Jan 2012, 14:48

Hi,

I don't actually know where the problem is (as3 client - server - bluebox).

Swf file config:

Code: Select all

<SmartFoxConfig>

   <!-- Mandatory Settings -->
   <ip>XXX.XXX.XXX.58</ip>
   <port>9934</port>
   <zone>my zone</zone>
   <!-- End Mandatory Settings -->
   
   <debug>false</debug>
   
   <httpPort>8080</httpPort>
   <useBlueBox>true</useBlueBox>
   <blueBoxPollingRate>500</blueBoxPollingRate>
   
</SmartFoxConfig>


I changed the port in "Mandatory settings" to trigger Bluebox.

When I run my app, locally, I get these errors:

Code: Select all

## SocketError: [IOErrorEvent type="ioError" bubbles=false cancelable=false eventPhase=2 text="Error #2031: Socket Error. URL: 184.XXX.XXX.XX"]


And

Code: Select all

## SecurityError: [SecurityErrorEvent type="securityError" bubbles=false cancelable=false eventPhase=2 text="Error #2048: Security sandbox violation: file:///C|/file.swf cannot load data from 184.XXX.XXX.XX:9934."]


The AS3 API is version 0.9.8

The Server version is 2.0.0-RC3

I'm listening to SFSEvent.CONNECTION_ATTEMPT_HTTP, but never gets triggered.

The app connects through port 9933 without any issues.

Any thoughts or directions would be appreciated.

Thanks
User avatar
A51Integrated
Posts: 240
Joined: 03 Jan 2012, 19:55
Location: Toronto, Canada
Contact:

Postby A51Integrated » 12 Jan 2012, 15:17

First thing to do is check if there are any firewall settings preventing your HTTP port (8080) from receiving packets.

Telnet to the port and see if it's open.

Try that first.
A51 Integrated
http://a51integrated.com / +1 416-703-2300
Sherife
Posts: 23
Joined: 31 Aug 2011, 09:03
Location: United Kingdom
Contact:

Postby Sherife » 12 Jan 2012, 16:34

Thanks A51Integrated...

The port is open..

Do you know when SFSEvent.CONNECTION_ATTEMPT_HTTP should get triggered? does the client expect anything from the server to trigger it?
User avatar
A51Integrated
Posts: 240
Joined: 03 Jan 2012, 19:55
Location: Toronto, Canada
Contact:

Postby A51Integrated » 12 Jan 2012, 17:50

I suspect no - the client's not connected to the server so it can't actually receive anything from it.

Maybe iterate through your ConfigData instance and see if useBlueBox is actually set to true - you can also set the property manualy like:

Code: Select all

SFSClient.useBlueBox = true;
A51 Integrated

http://a51integrated.com / +1 416-703-2300
Sherife
Posts: 23
Joined: 31 Aug 2011, 09:03
Location: United Kingdom
Contact:

Postby Sherife » 12 Jan 2012, 18:07

"useBlueBox" is not a property of the SmartFox class.. maybe I've got an old API version as the online docs mention it should be there!

Code: Select all

var _socket:SmartFox;

_socket.useBlueBox  //does not exist


Can you possibly check what API version you're using?

Thanks..
Sherife
Posts: 23
Joined: 31 Aug 2011, 09:03
Location: United Kingdom
Contact:

Postby Sherife » 12 Jan 2012, 18:39

That was it!

I was using an older version of the as3 API.. :)

I downlaoded this version, http://www.smartfoxserver.com/2X/quickU ... 0.9.17.zip and it works perfectly :)

Thanks A51Integrated

Return to “BlueBox”

Who is online

Users browsing this forum: No registered users and 15 guests