Not connect to server

Post here your questions about the Flash / Flex / Air API for SFS2X

Moderators: Lapo, Bax

jollzy
Posts: 6
Joined: 13 Dec 2013, 10:40

Not connect to server

Postby jollzy » 13 Dec 2013, 19:27

Hi

I have testing your server, so I downloaded the Tris (tic tac toe) project
I set up everything as its needed , but for some reason wont connect.
However if i hard code the ip and the port in the LogingPanel.mxml for the connector component
It connects but I wont be able to login because the zone wont be defined for the users (BasicExamples)

Can anyone tell me what I could do wrong , If I have not made changes to it at all.

Thanks
User avatar
Lapo
Site Admin
Posts: 23027
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: Not connect to server

Postby Lapo » 13 Dec 2013, 20:44

The examples are by default configured to run on the localhost.
We recommend testing locally to avoid problems with the Flash crossdomain policy, it's much easier.

If you need to point the example to another address do not hardcode it in the source, instead open the config.xml file and edit the details there.

Thanks
Lapo
--
gotoAndPlay()
...addicted to flash games
jollzy
Posts: 6
Joined: 13 Dec 2013, 10:40

Re: Not connect to server

Postby jollzy » 13 Dec 2013, 21:01

if the following line has no configPath set
<sfb:Connector id="connector" gap="5" labelPlacement="right" serverIpAddress="myip" serverPort="9933" autoConnect="true" debug="true"/>
-----------------------------------then i get this trace----------------------------
## SocketError: [IOErrorEvent type="ioError" bubbles=false cancelable=false eventPhase=2 text="Error #2031: Socket Error. URL: 95.85.15.180"]

[SFS - INFO] Object going out:
(byte) c: 0
(sfs_object) p:
(utf_string) api: 1.0.1
(utf_string) cl: FlashPlayer:StandAlone:MAC 11,1,102,55

(short) a: 0

[SFS - INFO] Data Read: Binary Size: 80
80 00 4D 12 00 03 00 01 61 03 00 00 00 01 63 02 ..M.....a.....c.
00 00 01 70 12 00 03 00 02 74 6B 08 00 20 63 63 ...p.....tk...cc
36 31 37 34 32 31 37 36 36 65 30 61 36 36 66 30 617421766e0a66f0
66 61 63 63 37 33 62 38 31 66 66 62 65 64 00 02 facc73b81ffbed..
63 74 04 00 00 04 00 00 02 6D 73 04 00 7A 12 00 ct.......ms..z..

[SFS - INFO] Handshake { Message id: 0 }
{ Dump: }

(utf_string) tk: cc617421766e0a66f0facc73b81ffbed
(int) ct: 1024
(int) ms: 8000000

then about 5 seconds I get this

## SecurityError: [SecurityErrorEvent type="securityError" bubbles=false cancelable=false eventPhase=2 text="Error #2048: Security sandbox violation: file:///Users/jollzy/Documents/workstuff/Tris/bin-debug/Tris.swf cannot load data from myip:9933."]

but if there is a configPath set
<sfb:Connector id="connector" gap="5" labelPlacement="right" serverIpAddress="myip" serverPort="9933" configPath="config/sfs-config.xml" autoConnect="true" debug="true"/>
then i get this trace only (in otherwords wont even connect)
## SocketError: [IOErrorEvent type="ioError" bubbles=false cancelable=false eventPhase=2 text="Error #2031: Socket Error. URL: myip"]

please someone help
Its already annoying the fact i got it out of the box installation without making any major changes and it s not working, and there are no explanation about this issue anywhere.
jollzy
Posts: 6
Joined: 13 Dec 2013, 10:40

Re: Not connect to server

Postby jollzy » 14 Dec 2013, 04:39

great no one seems to experienced this issue , well that is my luck :D
User avatar
Lapo
Site Admin
Posts: 23027
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: Not connect to server

Postby Lapo » 14 Dec 2013, 08:53

You are trying to connect to an external Server --> 95.85.15.180:9933
The problem is that the server does not respond on that port, TCP 9933. It is very likely that you have a firewall blocking the communication.

To test the port from outside use the tips we provide in our troubleshooting guide:
http://docs2x.smartfoxserver.com/Gettin ... leshooting

cheers
Lapo

--

gotoAndPlay()

...addicted to flash games
jollzy
Posts: 6
Joined: 13 Dec 2013, 10:40

Re: Not connect to server

Postby jollzy » 14 Dec 2013, 16:47

Of course I am a a dummy , if i upload my game to the same server then should work, for development perpuse I should open the 9933 port on my router

I have tried to telnet into the server , but of course its refused LOL

Thanks

Return to “SFS2X ActionScript 3 API”

Who is online

Users browsing this forum: No registered users and 24 guests