API 1.6. 3 supports IPV6 networks?

Post here your questions about the C++ API for SFS2X

Moderators: Lapo, Bax, MBagnati

vietgameplay
Posts: 1
Joined: 11 Jun 2016, 10:43

API 1.6. 3 supports IPV6 networks?

Postby vietgameplay » 11 Jun 2016, 10:58

Hello,

This is review from Apple
From Apple
2.2 - Apps that exhibit bugs will be rejected
2.2 Details
We discovered one or more bugs in your app when reviewed on an iPad running iOS 9.3.2 and an iPhone running iOS 9.3.2 on both Wi-Fi and cellular networks.
Next Steps
Apps are reviewed on an IPv6 network. Please ensure that your app supports IPv6 networks, as IPv6 compatibility is required.
For additional information about supporting IPv6 Networks, please refer to Supporting iPv6 DNS64/NAT64 Networks.
For a networking overview, see About Networking.

//My steps
1. Please follow this instruction to create an ipv6 network:
https://developer.apple.com/library/mac/documentation/NetworkingInternetWeb/Conceptual/NetworkingOverview/UnderstandingandPreparingfortheIPv6Transition/UnderstandingandPreparingfortheIPv6Transition.html#//apple_ref/doc/uid/TP40010220-CH213-SW1

2. Your "client" (Iphone, Ipad) connect to ipv6 network just created.

3. client connect to server:
- onConnection is OK.
- but loginRequest send nothing or server can't listen from client.

C++ client API 1.6.3
User avatar
Lapo
Site Admin
Posts: 23008
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: API 1.6. 3 supports IPV6 networks?

Postby Lapo » 11 Jun 2016, 16:00

Thanks for reporting.
I have moved your post under the C++ section, because you originally posted under the iOS/Objective-C section, where we discuss the native iOS API.

The Objective-C API fully support IPv6, while the C++ probably will need some extra testing.

We'll report back, stay tuned.
Lapo
--
gotoAndPlay()
...addicted to flash games
User avatar
Lapo
Site Admin
Posts: 23008
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: API 1.6. 3 supports IPV6 networks?

Postby Lapo » 13 Jun 2016, 09:35

From your previous report you said that the connection is fine, but you can't login.
If the connection is established it means that communication is working via IPv6 otherwise you would get an error at connection time.

Can you provide more details about the login issue? Is there any specific error after you send the login request? Either from client or server side?

Thanks
Lapo

--

gotoAndPlay()

...addicted to flash games
MBagnati
Posts: 126
Joined: 12 Feb 2013, 10:57

Re: API 1.6. 3 supports IPV6 networks?

Postby MBagnati » 21 Jun 2016, 22:25

I think that C++ Client API needs a little change to work with IPv6.
Please modify method GetIpAddress contained into file SmartFox.cpp:
replace

Code: Select all

   tcp::resolver::query query(tcp::v4(), host, *portAsString);

with

Code: Select all

   tcp::resolver::query query(tcp::v6(), host, *portAsString);


Let me know if this change resolves the issue
alexdao
Posts: 11
Joined: 30 Sep 2015, 13:44

Re: API 1.6. 3 supports IPV6 networks?

Postby alexdao » 27 Jun 2016, 12:07

MBagnati wrote:I think that C++ Client API needs a little change to work with IPv6.
Please modify method GetIpAddress contained into file SmartFox.cpp:
replace

Code: Select all

   tcp::resolver::query query(tcp::v4(), host, *portAsString);

with

Code: Select all

   tcp::resolver::query query(tcp::v6(), host, *portAsString);


Let me know if this change resolves the issue


Hi friend,

I try to modify as you suggest, but i still cant connect to my server,

I'm using smartfox 1.6.1 c++ client and server 2.8.5,

can you help me resolve it?

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

Re: API 1.6. 3 supports IPV6 networks?

Postby Lapo » 27 Jun 2016, 13:33

Can you please provide the details of the problem? What error specifically are you getting?
We have tested this solution and we were able to connect to the localhost, which is ::1 in IPv6 notation.

I'd suggest to try the same by doing the following.

1- Configure a local instance of SmartFoxServer 2X to bind the equivalent of 0.0.0.0 (IPv4) which is :: (double colon) in IPv6 notation
2- Point your client test application to ::1

If this works then IPv6 support is the problem but maybe there are other connection issues.

Thanks
Lapo

--

gotoAndPlay()

...addicted to flash games
alexdao
Posts: 11
Joined: 30 Sep 2015, 13:44

Re: API 1.6. 3 supports IPV6 networks?

Postby alexdao » 28 Jun 2016, 04:29

Lapo wrote:Can you please provide the details of the problem? What error specifically are you getting?
We have tested this solution and we were able to connect to the localhost, which is ::1 in IPv6 notation.

I'd suggest to try the same by doing the following.

1- Configure a local instance of SmartFoxServer 2X to bind the equivalent of 0.0.0.0 (IPv4) which is :: (double colon) in IPv6 notation
2- Point your client test application to ::1

If this works then IPv6 support is the problem but maybe there are other connection issues.

Thanks


Thank for your answer,

I had re-test, and problem is resolved,

:)

Return to “SFS2X C++ API”

Who is online

Users browsing this forum: No registered users and 17 guests