Search found 20601 matches

by Lapo
18 Sep 2019, 15:44
Forum: SFS2X Questions
Topic: [UNITY] establish a connection between different PC's
Replies: 1
Views: 8

Re: [UNITY] establish a connection between different PC's

Hello,
the first thing to check is firewalls. In particular on the PC running the server.
Make sure that traffic is allowed for TCP 9933 and UDP 9933.

Hope it helps
by Lapo
18 Sep 2019, 15:42
Forum: SFS2X Questions
Topic: Access Badwordsfilter directly
Replies: 1
Views: 10

Re: Access Badwordsfilter directly

Hi, the message filter is placed in a specific point of the message chain, so that it can catch matching words before they get sent to other players. I am not sure what you mean by "accessible directly to check strings". The class that runs the filtering is not pluggable by some other exte...
by Lapo
18 Sep 2019, 15:37
Forum: SFS2X Questions
Topic: Get user's IP
Replies: 12
Views: 78

Re: Get user's IP

Hello again and thank you for the quick reply, The websocket solution seems promising I will look into it, thank you for that. It all depends on the proxy/balancer. If it transmits the original address no problem, otherwise you'll have the same issue. As regards the client sending their IP address,...
by Lapo
18 Sep 2019, 15:32
Forum: SFS2X Questions
Topic: Curiosity about reconnection
Replies: 4
Views: 16

Re: Curiosity about reconnection

Hi,
it's difficult to say. We would need to understand how to reproduce the problem.
The description you have given does not reproduce it, unless some other steps are missing. We'll need more details.

Thanks.
by Lapo
18 Sep 2019, 09:50
Forum: SFS2X Questions
Topic: Get user's IP
Replies: 12
Views: 78

Re: Get user's IP

Hi, you could try with websocket, instead of regular sockets. Because websocket is part of the HTTP protocol, most load-balancers and proxies recognize it and add a directive called "X-Forwarded-For" that allows the server to recognize the original IP address of the client. SFS2X supports ...
by Lapo
18 Sep 2019, 09:35
Forum: SFS2X Questions
Topic: Curiosity about reconnection
Replies: 4
Views: 16

Re: Curiosity about reconnection

Hello, - When the user reconnection frame timer ends, what happens? Does the server try to send the client a Disconnect event? No. The client already knows that the previous connection is lost. When the timer is over the disconnect event is fired on the client. From the server side the User and rela...
by Lapo
17 Sep 2019, 16:30
Forum: SFS2X Questions
Topic: Extension requests and TCP packets
Replies: 4
Views: 30

Re: Extension requests and TCP packets

brockemon wrote:Would love for an option to mark certain packets to be grouped while others send immediately :)

You can always aggregate the data you want to transmit in one "Send" operation yourself.

Cheers
by Lapo
17 Sep 2019, 14:31
Forum: SFS2X Questions
Topic: Get user's IP
Replies: 12
Views: 78

Re: Get user's IP

Yes, it will fail because the IP address is pointing to a local network.
Cheers.
by Lapo
17 Sep 2019, 08:13
Forum: SFS2X Questions
Topic: Extension requests and TCP packets
Replies: 4
Views: 30

Re: Extension requests and TCP packets

Hi, Just wondering if there is any automatic grouping of extension requests into single TCP packets. If not, are we guaranteed that every call to Send will be a new packet? It depends on the status of the TCP's Nagle algorithm settings. By default the latest SFS2X 2.13 disables it, so multiple resp...
by Lapo
16 Sep 2019, 15:22
Forum: SFS2X Questions
Topic: Get user's IP
Replies: 12
Views: 78

Re: Get user's IP

Hi, Hello Lapo and thank you for the update, I have checked with other clients and they all return IP addresses like 10.2.1.1 or 10.2.1.2 Is there a way to find the user's IP then? No because the client is not physically connected to the server, but rather to an intermediary which then connects to t...
by Lapo
16 Sep 2019, 15:19
Forum: SFS2X Questions
Topic: Limit of scheduleAtFixedRate
Replies: 1
Views: 22

Re: Limit of scheduleAtFixedRate

Hi, there is no specific limit. Essentially it depends on these variables: 1) number of threads in the Scheduler 2) how frequent your tasks are 3) how long does it take for a task to complete 4) the number of tasks Example 1) Scheduler uses 1 thread 2) Tasks run every second 3) A task completes in 1...
by Lapo
16 Sep 2019, 07:53
Forum: SFS2X Questions
Topic: Get user's IP
Replies: 12
Views: 78

Re: Get user's IP

Maybe it's best to clarify one point first. In your post you said you're getting "10.2.1.2" as the player's IP which corresponds to a local network IP. Does this happen for every player? In other words if you check any player's IP address you always get the same local IP? If so, it means t...
by Lapo
16 Sep 2019, 07:45
Forum: SFS2X Questions
Topic: Session Reconnection failure
Replies: 5
Views: 272

Re: Session Reconnection failure

Can I suggest that for a future upgrade, Smartfox moves to a sort of cookie based solution where the cookie identifies the user rather than the IP and connection ? It might help with development in this age where people are on phones and moving about so much. It will make retaining a connection so ...
by Lapo
16 Sep 2019, 07:03
Forum: SFS2X Questions
Topic: change username when logged in
Replies: 7
Views: 2768

Re: Re:

You can change the name at login time. See login tutorial: http://docs2x.smartfoxserver.com/GettingStarted/howtos#item3 My apologies, but this document seems to be missing or moved. I'm wondering how to go about changing the username from the java code at login time. Thanks! You can find it here: h...
by Lapo
14 Sep 2019, 07:06
Forum: SFS2X Questions
Topic: Get user's IP
Replies: 12
Views: 78

Re: Get user's IP

Hi, it sounds like your client connections are going through some kind of load balancer? If that's the case there is no way to find out the original IP adddress. One side note, in SFS2X 2.12 and higher there's a much simpler way to get the country of User: import com.smartfoxserver.v2.util.Country; ...

Go to advanced search