IPv6 support on SmartFoxServer 1.x ?

Need help with SmartFoxServer? You didn't find an answer in our documentation? Please, post your questions here!

Moderators: Lapo, Bax

Maan
Posts: 4
Joined: 16 Jun 2016, 14:36

IPv6 support on SmartFoxServer 1.x ?

Postby Maan » 16 Jun 2016, 14:41

Hi,
Per the new iOS guidelines, any new submission to the app store must support IPv6.
http://www.internetsociety.org/deploy36 ... os-9-apps/

Does SmartFoxServer 1.x support IPv6 or has any issues with it?
User avatar
Lapo
Site Admin
Posts: 23008
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: IPv6 support on SmartFoxServer 1.x ?

Postby Lapo » 16 Jun 2016, 14:51

Sorry no. SFS PRO 1.x does not support IPv6.

You will need to use SmartFoxServer 2X:
http://www.smartfoxserver.com/download/ ... =installer

cheers
Lapo
--
gotoAndPlay()
...addicted to flash games
Maan
Posts: 4
Joined: 16 Jun 2016, 14:36

Re: IPv6 support on SmartFoxServer 1.x ?

Postby Maan » 17 Jun 2016, 01:24

Thank you kindly for the reply Lapo.
So to make sure, even if the smartfox 1.x is in an IPv4 network, it won't connect with a client in an IPv6 network? (Like Test 3 here: viewtopic.php?f=18&t=18486)
In other words, no app that relies on Smartfox 1.x will pass Apple acceptance because it doesn't connect?
User avatar
Lapo
Site Admin
Posts: 23008
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: IPv6 support on SmartFoxServer 1.x ?

Postby Lapo » 17 Jun 2016, 08:25

I am not sure about that.
The first thing to say is that we have never tested :) We have stopped adding new features to SmartFoxServer 1.x in 2011, when we launched SFS2X. The product (1.x) is still supported, i.e. we fix bugs and potential vulnerabilities, if they are found but we are not adding new features.

Back in 2011 the switch to IPv6 networks was not a worry for developers.

In any case, I think there is nothing in SmartFoxServer PRO that should stop it from running on an IPv6 only network, so the server is hardly the problem.

From a client side perspective (Objective-C API) my first concern is that the last release of Objective-C API is dated June 2010, so I am not sure if they would compile correctly under the latest XCode and iOS targets. You can try and see if they do:
http://smartfoxserver.com/download/sfsPro#p=updates

If they do compile and there's no major show stopper (e.g. deprecated classes etc...) then I think they might work with IPv6, for the simple reason that the low-level networking is handled by Apple's own framework (CFNetwork etc...) which in turn does support IPv6.

The moral of the story is: we don't "support it" because we have never tested it thoroughly.

As I said, the litmus test is trying to compile the old 1.x Objective-C under a modern XCode and see if they work.

Hope it helps
Lapo

--

gotoAndPlay()

...addicted to flash games
Maan
Posts: 4
Joined: 16 Jun 2016, 14:36

Re: IPv6 support on SmartFoxServer 1.x ?

Postby Maan » 19 Jun 2016, 08:56

Thank you Lapo :)
We'll try to make it work, and later report the result of the work here.
Maan
Posts: 4
Joined: 16 Jun 2016, 14:36

Re: IPv6 support on SmartFoxServer 1.x ?

Postby Maan » 04 Jul 2016, 13:21

The solution by one of our engineers
--------------------------------------------------------
So basically we had to edit the source code for the SFS client api
download the source code, edit the usage of Tcp cleint as follows:

In the SmartFoxClient class under the ConnectThread() method (line 1061) there’s this:

socketConnection = new TcpClient();
socketConnection.Connect(ipAddress, port);

Replace with this instead:

socketConnection = new TcpClient(address, port);

Note: address is the hostname , and we don't have that in the class, pass it in your own way.


May this be helpful to someone else. Good luck :)

Return to “SmartFoxServer 1.x Discussions and Help”

Who is online

Users browsing this forum: No registered users and 35 guests