Search found 25 matches

by NoN33d
19 Sep 2019, 14:34
Forum: SFS2X Questions
Topic: Get user's IP
Replies: 12
Views: 390

Re: Get user's IP

Hello Lapo,

Thank you for the support, you helped me a lot, I will consider all the options and try them out.

Thanks again,
Nikos
by NoN33d
18 Sep 2019, 09:59
Forum: SFS2X Questions
Topic: Get user's IP
Replies: 12
Views: 390

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. As regards the client sending their IP address, if I chose this approach which I think I will, how can I get the client's IP address from the client? Does smartfox have a bu...
by NoN33d
18 Sep 2019, 09:22
Forum: SFS2X Questions
Topic: Get user's IP
Replies: 12
Views: 390

Re: Get user's IP

Hello Lapo and thank you for the reply,

Is there any work-around this? Maybe I can use client smartfox api to get the global IP and send it to the server via message?

Thank you,
Nikos
by NoN33d
17 Sep 2019, 09:54
Forum: SFS2X Questions
Topic: Get user's IP
Replies: 12
Views: 390

Re: Get user's IP

Hello and thank you for the reply, I will contact Jelastic support but in the meanwhile I would like to ask if there is another work-around. For example, what about the code that you sent me before: import com.smartfoxserver.v2.util.Country; class MyHandler extends BaseClientRequestHandler { void ha...
by NoN33d
16 Sep 2019, 10:03
Forum: SFS2X Questions
Topic: Get user's IP
Replies: 12
Views: 390

Re: Get user's IP

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? By the way, I am using Jelastic to host my game, if that helps. I haven't enabled the "Balancing option", as disp...
by NoN33d
16 Sep 2019, 07:25
Forum: SFS2X Questions
Topic: Get user's IP
Replies: 12
Views: 390

Re: Get user's IP

Hello Lapo, Thank you for the reply. We don't have a "load balancer", I am not even sure about what that is :) Can you give me more information to find out if I am using it and maybe how to disable it? About your solution, as I mentioned on the first post I have tried it but it returns nul...
by NoN33d
13 Sep 2019, 10:37
Forum: SFS2X Questions
Topic: Get user's IP
Replies: 12
Views: 390

Get user's IP

Hello, We are using smartfox 2x version 2.13.6 for multiplayer functionality on our game. We would like to find the client's IP in order to find his geo location. This is the current code: public class UserHandler extends BaseClientRequestHandler { @Override public void handleClientRequest(User user...
by NoN33d
31 May 2019, 15:12
Forum: SFS2X Questions
Topic: Issue with RequestHandler
Replies: 5
Views: 353

Re: Issue with RequestHandler

Hello Lapo, Sorry for not being very informative, the reason why I sent you just the file sizes is because the files that are ~700KB in size contain just INFO - Debug messages and those that are ~2KB in size contain just one ERROR message each, the error that I sent you, which is weird. Do you have ...
by NoN33d
30 May 2019, 08:00
Forum: SFS2X Questions
Topic: Issue with RequestHandler
Replies: 5
Views: 353

Re: Issue with RequestHandler

Hello, I will give you every detail you need. The game that is getting errors uses: The server is using SmartFoxServer 2X Version 2.12.0 while the Smartfox inside our game is SmartFox2X Version=1.7.0.0 The other game that uses the same code / structure and does not get errors uses: The server is usi...
by NoN33d
28 May 2019, 12:53
Forum: SFS2X Questions
Topic: Issue with RequestHandler
Replies: 5
Views: 353

Issue with RequestHandler

Hello guys, We have been running 2 smartfox servers with the same code for about 2 years and one of them is getting an error every 7-10 days and then stops workings until we restart it. The error is the following: 25 May 2019 | 10:17:09,542 | ERROR | SFSWorker:Ext:3 | controllers.v290.ExtensionReqCo...
by NoN33d
27 Oct 2017, 13:41
Forum: SFS2X Questions
Topic: Service name of smartfox
Replies: 3
Views: 1039

Re: Service name of smartfox

Hello again, You must be right, I guess that steam is not asking about how we create the account but who is holding the account info. It is kind of weird but I guess this is it, since we have our own database we will use our company's name for the "Service Name" and try to release the game...
by NoN33d
26 Oct 2017, 15:35
Forum: SFS2X Questions
Topic: Service name of smartfox
Replies: 3
Views: 1039

Service name of smartfox

Hello guys, We have a problem with our multiplayer game on Steam. Steam sent us an email saying that our game uses 3rd party account creation and that we have to put a warning about 3rd party accounts. On the option where we declare that we have 3rd party account we are asked to put the "Servic...
by NoN33d
18 Jul 2017, 08:42
Forum: SFS2X Questions
Topic: Cannot get a connection
Replies: 7
Views: 1568

Re: Cannot get a connection

Hello! I think that this change on the "Test SQL" solved our issue, that's amazing! The internal traffic dropped from 50 Gb to 1 Mb (we were searching a lot to solve this, we tried many... many approaches), the cloudlets dropped from 200 to 5 and the server is working smoothly (finally). W...
by NoN33d
17 Jul 2017, 13:57
Forum: SFS2X Questions
Topic: Cannot get a connection
Replies: 7
Views: 1568

Re: Cannot get a connection

Hello again, Our table actually has about 1 million entries with 7 columns. The "select *" takes about 1 sec while the "SELECT name FROM someTable LIMIT 1" takes a few ms. I changed it already but I can't understand why this can cause the issue, doesn't this "Test SQL" ...
by NoN33d
17 Jul 2017, 10:10
Forum: SFS2X Questions
Topic: Cannot get a connection
Replies: 7
Views: 1568

Re: Cannot get a connection

Hello Lapo and thank you for your reply. I set up the database connection through SFS from "Zone Configuration" -> "My Zone" -> "Database Manager". These are our current settings: Database driver class = com.mysql.jdbc.Driver Connection string = jdbc:mysql://mysql...:po...

Go to advanced search