SFS2X Connection is not working

Post here your questions about SFS2X. Here we discuss all server-side matters. For client API questions see the dedicated forums.

Moderators: Lapo, Bax

unity.webmyne
Posts: 24
Joined: 13 Feb 2017, 09:49

SFS2X Connection is not working

Postby unity.webmyne » 25 Jul 2017, 06:54

Hello,

I am trying to connect using " sfs.Connect (Host, TcpPort); ", But it is not responding anything though my net is working. I have also tried to reconnect after every 15 sec with new Smart Fox Object , registering all listeners and then tried to connect but still It is not responding anything and remain in the " SFS.IsConnecting = true state ".

Please help me ASAP as my game is already live and want to fix these all.

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

Re: SFS2X Connection is not working

Postby Lapo » 25 Jul 2017, 06:58

Can you tell me the address and port of your server?
If you prefer send me a PM

cheers
Lapo
--
gotoAndPlay()
...addicted to flash games
unity.webmyne
Posts: 24
Joined: 13 Feb 2017, 09:49

Re: SFS2X Connection is not working

Postby unity.webmyne » 25 Jul 2017, 07:02

Yes sure,
ServerHost : "ws-srv-net.in.webmyne.com"
Port: 9933

It is our local host, but we are also facing the same issue on our live server.

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

Re: SFS2X Connection is not working

Postby Lapo » 25 Jul 2017, 07:20

Connection works just fine for me.
Can you please show me the stack trace of your connection error and the code you're using to connect?

Thanks
Lapo

--

gotoAndPlay()

...addicted to flash games
unity.webmyne
Posts: 24
Joined: 13 Feb 2017, 09:49

Re: SFS2X Connection is not working

Postby unity.webmyne » 25 Jul 2017, 08:05

If there would be any error I would have definitely handled it but it is not responding anything.How can I detect whats the problem and this problem occurs sometimes only.
User avatar
Lapo
Site Admin
Posts: 23008
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: SFS2X Connection is not working

Postby Lapo » 25 Jul 2017, 08:13

It would help to have more details such as what client platform and API you're using etc...
If I remember correctly you were working with Unity, correct?

If so I would recommend to test in the Unity Editor for starters, so that you have access to the debug console and you'll be able to see any errors.

If in the Unity error nothing happens I would suspect that you have a firewall on your machine blocking communication towards the server.
Make sure to double check.

Thanks
Lapo

--

gotoAndPlay()

...addicted to flash games
unity.webmyne
Posts: 24
Joined: 13 Feb 2017, 09:49

Re: SFS2X Connection is not working

Postby unity.webmyne » 25 Jul 2017, 08:15

Yes, We are using Unity as a front end, and in unity Editor its working fine. This issue occurs in android mobile devices only.

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

Re: SFS2X Connection is not working

Postby Lapo » 25 Jul 2017, 08:38

Without access to the logs it's not possible to guess what might be going on.
I can only recommend to connect the debugger or logcat to your test device and see what's happening.

These may help:
http://answers.unity3d.com/questions/13 ... droid.html
https://docs.unity3d.com/Manual/Attachi ... evice.html

cheers
Lapo

--

gotoAndPlay()

...addicted to flash games
unity.webmyne
Posts: 24
Joined: 13 Feb 2017, 09:49

Re: SFS2X Connection is not working

Postby unity.webmyne » 25 Jul 2017, 08:44

Ok. I am trying that now.


Thanks,
Romin

Return to “SFS2X Questions”

Who is online

Users browsing this forum: No registered users and 63 guests