Connector component

Post here your questions about the OpenSpace 2.x or notify bugs and suggestions.

Moderators: Lapo, Bax

HHJsyndrome
Posts: 23
Joined: 05 Oct 2010, 09:28

Connector component

Postby HHJsyndrome » 25 Mar 2011, 10:32

Hi, I have a question.

Regarding the connector component.. how do I set my flash file so that the swf will point to my server.

I did a right click on the connector inside my flash library, and click component definition.

Then I changed the Server IP addres variable's value to my server's IP address.

However when I tried to run my swf, I get an error msg saying

Code: Select all

[ Send ]: sfsHttp=connect
Error opening URL 'http://127.0.0.1:8080/BlueBox/HttpBox.do'
HttpError
Can't connect to 127.0.0.1:9339


why is this happening when I've already changed it to point to my server's ip address?
User avatar
Bax
Site Admin
Posts: 4609
Joined: 29 Mar 2005, 09:50
Location: Italy
Contact:

Postby Bax » 25 Mar 2011, 13:11

Which version of OpenSpace are you using? For SFS 1 or SFS 2X?
Paolo Bax
The SmartFoxServer Team
HHJsyndrome
Posts: 23
Joined: 05 Oct 2010, 09:28

Postby HHJsyndrome » 28 Mar 2011, 02:01

I'm using sfs 1.66 for openspace 2
User avatar
Bax
Site Admin
Posts: 4609
Joined: 29 Mar 2005, 09:50
Location: Italy
Contact:

Postby Bax » 28 Mar 2011, 22:15

What you did, setting the IP address on the Connector, is right.
The error you get is due to the fact that the client is trying to connect through the BlueBox, even if the address should the one of your server.
Can you please post the full client log? I would like to see the messages sent by the client to the server when it tries to connect via socket.
Paolo Bax
The SmartFoxServer Team
HHJsyndrome
Posts: 23
Joined: 05 Oct 2010, 09:28

Postby HHJsyndrome » 29 Mar 2011, 02:30

Go button clicked; Connector will now load SmartFoxClient configuration and connect to SmartFoxServer
Avatars external library loaded
[ Send ]: sfsHttp=connect
Error opening URL 'http://127.0.0.1:8080/BlueBox/HttpBox.do'
HttpError
Can't connect to 127.0.0.1:9339



That's the whole log, it just says can't connect and httpError.

So what can I do now?
User avatar
Bax
Site Admin
Posts: 4609
Joined: 29 Mar 2005, 09:50
Location: Italy
Contact:

Postby Bax » 29 Mar 2011, 06:22

I believe you made some mistake when changing the IP on the Connector instance. I opened the example, clicked on the Connector on the stage, opened the Component Parameters panel and set the IP to an invalid value, i.e. 193.27.0.2
This is what I get in the logs:

Code: Select all

Avatars external library loaded
Go button clicked; Connector will now load SmartFoxClient configuration and connect to SmartFoxServer
Socket connection failed. Trying BlueBox
[ Send ]: sfsHttp=connect
Error opening URL 'http://193.27.0.2:8080/BlueBox/HttpBox.do'
HttpError
Can't connect to 193.27.0.2:9339

As you can see the IP I entered is reported.
Paolo Bax
The SmartFoxServer Team
HHJsyndrome
Posts: 23
Joined: 05 Oct 2010, 09:28

Postby HHJsyndrome » 29 Mar 2011, 07:03

Image

Erm no look at the screenshot. I clicked the component on the stage and the component shows the server ip address of 203.211.134.143.

but when I did a test movie. I still get the default 127.0.0.1

Go button clicked; Connector will now load SmartFoxClient configuration and connect to SmartFoxServer
Avatars external library loaded
[ Send ]: sfsHttp=connect
Error opening URL 'http://127.0.0.1:8080/BlueBox/HttpBox.do'
HttpError
Can't connect to 127.0.0.1:9339
[ Send ]: sfsHttp=connect
Error opening URL 'http://127.0.0.1:8080/BlueBox/HttpBox.do'
HttpError
Can't connect to 127.0.0.1:9339


hmm..
User avatar
Bax
Site Admin
Posts: 4609
Joined: 29 Mar 2005, 09:50
Location: Italy
Contact:

Postby Bax » 29 Mar 2011, 09:19

No idea, sorry.
I suggest you to get rid of the Connector and create your own instance of the SmartFox API.
Paolo Bax
The SmartFoxServer Team

Return to “OpenSpace v2 discussions and help”

Who is online

Users browsing this forum: No registered users and 14 guests