Unable to connect some user to sfs server

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

Moderators: Lapo, Bax

johnnikson
Posts: 10
Joined: 19 Feb 2021, 07:13

Unable to connect some user to sfs server

Postby johnnikson » 19 Jul 2021, 18:21

Hi I Am in my project i am facing issue of some user unable to connect with sfs server. this issue was i found by checking my playstore console there are more then 100 user downloaded my game and also tryed to login but but they no able to connect with server in sfs log there is an session crested but anything else. even i tryed my friends mobile i unable to connect but same time if i try from my mobile i can what would be the issue
below i mentiond log

19 Jul 2021 | 14:11:18,175 | INFO | SocketReader | bitswarm.sessions.DefaultSessionManager | | Session created: { Id: 8, Type: DEFAULT, Logged: No, IP: 115.98.234.71:1291 } on Server port: 9933 <---> 1291
19 Jul 2021 | 14:11:43,585 | INFO | SocketReader | bitswarm.sessions.DefaultSessionManager | | Session created: { Id: 9, Type: DEFAULT, Logged: No, IP: 115.98.234.71:7395 } on Server port: 9933 <---> 7395
19 Jul 2021 | 14:11:45,507 | INFO | SocketReader | bitswarm.sessions.DefaultSessionManager | | Session created: { Id: 10, Type: DEFAULT, Logged: No, IP: 115.98.234.71:7397 } on Server port: 9933 <---> 7397
19 Jul 2021 | 14:11:45,668 | INFO | SocketReader | bitswarm.sessions.DefaultSessionManager | | Session created: { Id: 11, Type: DEFAULT, Logged: No, IP: 115.98.234.71:7398 } on Server port: 9933 <---> 7398
19 Jul 2021 | 14:11:45,891 | INFO | SocketReader | bitswarm.sessions.DefaultSessionManager | | Session created: { Id: 12, Type: DEFAULT, Logged: No, IP: 115.98.234.71:7399 } on Server port: 9933 <---> 7399
19 Jul 2021 | 14:11:46,064 | INFO | SocketReader | bitswarm.sessions.DefaultSessionManager | | Session created: { Id: 13, Type: DEFAULT, Logged: No, IP: 115.98.234.71:7400 } on Server port: 9933 <---> 7400
19 Jul 2021 | 14:11:52,049 | INFO | SocketReader | bitswarm.sessions.DefaultSessionManager | | Session created: { Id: 14, Type: DEFAULT, Logged: No, IP: 115.98.234.71:7405 } on Server port: 9933 <---> 7405
19 Jul 2021 | 14:11:52,197 | INFO | SocketReader | bitswarm.sessions.DefaultSessionManager | | Session created: { Id: 15, Type: DEFAULT, Logged: No, IP: 115.98.234.71:7406 } on Server port: 9933 <---> 7406
19 Jul 2021 | 14:11:52,344 | INFO | SocketReader | bitswarm.sessions.DefaultSessionManager | | Session created: { Id: 16, Type: DEFAULT, Logged: No, IP: 115.98.234.71:7407 } on Server port: 9933 <---> 7407
19 Jul 2021 | 14:11:52,466 | INFO | SocketReader | bitswarm.sessions.DefaultSessionManager | | Session created: { Id: 17, Type: DEFAULT, Logged: No, IP: 115.98.234.71:7408 } on Server port: 9933 <---> 7408
19 Jul 2021 | 14:11:52,558 | INFO | Scheduler1-thread-1 | bitswarm.sessions.DefaultSessionManager | | Session removed: { Id: 8, Type: DEFAULT, Logged: No, IP: 115.98.234.71:1291 }
19 Jul 2021 | 14:11:52,649 | INFO | SocketReader | bitswarm.sessions.DefaultSessionManager | | Session created: { Id: 18, Type: DEFAULT, Logged: No, IP: 115.98.234.71:7409 } on Server port: 9933 <---> 7409
19 Jul 2021 | 14:11:52,802 | INFO | SocketReader | bitswarm.sessions.DefaultSessionManager | | Session created: { Id: 19, Type: DEFAULT, Logged: No, IP: 115.98.234.71:7410 } on Server port: 9933 <---> 7410
19 Jul 2021 | 14:12:22,574 | INFO | Scheduler1-thread-1 | bitswarm.sessions.DefaultSessionManager | | Session removed: { Id: 9, Type: DEFAULT, Logged: No, IP: 115.98.234.71:7395 }
19 Jul 2021 | 14:12:22,575 | INFO | Scheduler1-thread-1 | bitswarm.sessions.DefaultSessionManager | | Session removed: { Id: 10, Type: DEFAULT, Logged: No, IP: 115.98.234.71:7397 }
19 Jul 2021 | 14:12:22,575 | INFO | Scheduler1-thread-1 | bitswarm.sessions.DefaultSessionManager | | Session removed: { Id: 11, Type: DEFAULT, Logged: No, IP: 115.98.234.71:7398 }
19 Jul 2021 | 14:12:22,575 | INFO | Scheduler1-thread-1 | bitswarm.sessions.DefaultSessionManager | | Session removed: { Id: 12, Type: DEFAULT, Logged: No, IP: 115.98.234.71:7399 }
19 Jul 2021 | 14:12:22,575 | INFO | Scheduler1-thread-1 | bitswarm.sessions.DefaultSessionManager | | Session removed: { Id: 13, Type: DEFAULT, Logged: No, IP: 115.98.234.71:7400 }
19 Jul 2021 | 14:12:32,580 | INFO | Scheduler1-thread-1 | bitswarm.sessions.DefaultSessionManager | | Session removed: { Id: 14, Type: DEFAULT, Logged: No, IP: 115.98.234.71:7405 }
19 Jul 2021 | 14:12:32,581 | INFO | Scheduler1-thread-1 | bitswarm.sessions.DefaultSessionManager | | Session removed: { Id: 15, Type: DEFAULT, Logged: No, IP: 115.98.234.71:7406 }
19 Jul 2021 | 14:12:32,581 | INFO | SocketReader | bitswarm.sessions.DefaultSessionManager | | Session removed: { Id: 15, Type: DEFAULT, Logged: No, IP: 115.98.234.71:7406 }
19 Jul 2021 | 14:12:32,581 | INFO | Scheduler1-thread-1 | bitswarm.sessions.DefaultSessionManager | | Session removed: { Id: 16, Type: DEFAULT, Logged: No, IP: 115.98.234.71:7407 }
19 Jul 2021 | 14:12:32,581 | INFO | Scheduler1-thread-1 | bitswarm.sessions.DefaultSessionManager | | Session removed: { Id: 17, Type: DEFAULT, Logged: No, IP: 115.98.234.71:7408 }
19 Jul 2021 | 14:12:32,581 | INFO | Scheduler1-thread-1 | bitswarm.sessions.DefaultSessionManager | | Session removed: { Id: 18, Type: DEFAULT, Logged: No, IP: 115.98.234.71:7409 }
19 Jul 2021 | 14:12:32,582 | INFO | Scheduler1-thread-1 | bitswarm.sessions.DefaultSessionManager | | Session removed: { Id: 19, Type: DEFAULT, Logged: No, IP: 115.98.234.71:7410 }
User avatar
Lapo
Site Admin
Posts: 22999
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: Unable to connect some user to sfs server

Postby Lapo » 19 Jul 2021, 21:07

Hi,
most if not all connections are dying exactly 30 seconds after the connection has been established, which is the default timeout for a User if he/she doesn't send a Login request.

I would recommend to double check your code because it looks like clients are not trying to Login (as there is no track of any Login request in the logs you have sent).

If you need to learn more about the login phase, check the docs here:
http://docs2x.smartfoxserver.com/Develo ... ogin-phase

Cheers
Lapo
--
gotoAndPlay()
...addicted to flash games
johnnikson
Posts: 10
Joined: 19 Feb 2021, 07:13

Re: Unable to connect some user to sfs server

Postby johnnikson » 20 Jul 2021, 03:06

all user succfully connected with server automatic login request will send the same apk everyone using some able to login and play some just loading screen waiting for login success but they not . i have tryed lot of with that device change code many time but no worth. and also i have enabled firewall and just allowed smartfox server port 9933 does it makes any issue or anything else idont is there any one faced thks kind of issue let no the solution
User avatar
Lapo
Site Admin
Posts: 22999
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: Unable to connect some user to sfs server

Postby Lapo » 20 Jul 2021, 06:58

Where is the server hosted? Does it run in an hosting environment?
In the logs you have sent none of the clients were able to login but I also noticed that they all come from the same IP address. Are you running some kind of test from the same internet connection?

I would highly recommend to double check the server logs for any errors, and also do the same from client side. If a login fails you should typically receive an error via the SFSEvent.LOGIN_ERROR event (which contains a message property with the error message).

Thanks
Lapo

--

gotoAndPlay()

...addicted to flash games

Return to “SFS2X Questions”

Who is online

Users browsing this forum: No registered users and 52 guests