IPv6 support

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

Moderators: Lapo, Bax

User avatar
Bax
Site Admin
Posts: 4508
Joined: 29 Mar 2005, 09:50
Location: Italy
Contact:

Re: IPv6 support

Postby Bax » 19 Oct 2016, 08:15

You have to use the domain name of the server hosting SFS.
Before trying to connect with your client to SFS, make sure your computer can reach the server with a ping and a telnet connection.
Paolo Bax
The SmartFoxServer Team
weberekt
Posts: 35
Joined: 16 Sep 2014, 00:47

Re: IPv6 support

Postby weberekt » 19 Oct 2016, 08:48

Bax wrote:You have to use the domain name of the server hosting SFS.
Before trying to connect with your client to SFS, make sure your computer can reach the server with a ping and a telnet connection.



Yup, ping works fine from the computer sharing the internet.

Domain name? You mean the Public DNS assigned to the EC2 instance? (I'm using AWS EC2)

I tried both Public DNS value and A Record DNS, both are not working
Last edited by weberekt on 19 Oct 2016, 08:53, edited 1 time in total.
User avatar
Bax
Site Admin
Posts: 4508
Joined: 29 Mar 2005, 09:50
Location: Italy
Contact:

Re: IPv6 support

Postby Bax » 19 Oct 2016, 08:52

weberekt wrote:
Bax wrote:You have to use the domain name of the server hosting SFS.
Before trying to connect with your client to SFS, make sure your computer can reach the server with a ping and a telnet connection.

Yup, ping works fine from the computer sharing the internet.
Domain name? You mean the Public DNS assigned to the EC2 instance? (I'm using AWS EC2)

Yes, I suppose it's the public DNS. Can you ping it and telnet to it from the Test client? (see the Test 3 diagram)
Paolo Bax
The SmartFoxServer Team
weberekt
Posts: 35
Joined: 16 Sep 2014, 00:47

Re: IPv6 support

Postby weberekt » 19 Oct 2016, 08:55

Bax wrote:
weberekt wrote:
Bax wrote:You have to use the domain name of the server hosting SFS.
Before trying to connect with your client to SFS, make sure your computer can reach the server with a ping and a telnet connection.

Yup, ping works fine from the computer sharing the internet.
Domain name? You mean the Public DNS assigned to the EC2 instance? (I'm using AWS EC2)

Yes, I suppose it's the public DNS. Can you ping it and telnet to it from the Test client? (see the Test 3 diagram)


Okay I see, I'll try tomorrow when I'm back in the office.

Will ping work? Since Ipad is on Ipv6-only network, shouldn't it use ping6?
User avatar
Bax
Site Admin
Posts: 4508
Joined: 29 Mar 2005, 09:50
Location: Italy
Contact:

Re: IPv6 support

Postby Bax » 19 Oct 2016, 10:46

weberekt wrote:Will ping work? Since Ipad is on Ipv6-only network, shouldn't it use ping6?

I don't think so, because you are pinging a server with an IPv4 address.
Paolo Bax
The SmartFoxServer Team
weberekt
Posts: 35
Joined: 16 Sep 2014, 00:47

Re: IPv6 support

Postby weberekt » 19 Oct 2016, 21:47

Bax wrote:
weberekt wrote:Will ping work? Since Ipad is on Ipv6-only network, shouldn't it use ping6?

I don't think so, because you are pinging a server with an IPv4 address.


Okay I made some progress today.. but with helps of other apps.

My test client is Ipad. I downloaded this app from AppStore:
https://itunes.apple.com/us/app/ping-ne ... d576773404

It pings to my public DNS successfully and returns a translated Ipv6 address.

I tried my app running on Ipad with public DNS, it doesn't work.
I then tried running my app using the translated Ipv6 address wrapped by square brackets... it WORKS!!!

Now.. I'm wondering.. is there something wrong with Smartfox c# client dll? It's not retrieving the translated address properly?
User avatar
Bax
Site Admin
Posts: 4508
Joined: 29 Mar 2005, 09:50
Location: Italy
Contact:

Re: IPv6 support

Postby Bax » 20 Oct 2016, 07:05

Can you please send us the connection details by email? I'd like to test this scenario. Thank you.
And a few more questions: are you developing in Unity? What if you run the application in the Editor? Same behavior?
Paolo Bax
The SmartFoxServer Team
weberekt
Posts: 35
Joined: 16 Sep 2014, 00:47

Re: IPv6 support

Postby weberekt » 20 Oct 2016, 07:27

Bax wrote:Can you please send us the connection details by email? I'd like to test this scenario. Thank you.
And a few more questions: are you developing in Unity? What if you run the application in the Editor? Same behavior?


Sure, pm me your email? do you mean our server DNS? I need to open the ports up

Yea, we develop our client in Unity, I didn't try using desktop as client, either in editor or standalone build.
I have only tried Ipad.
User avatar
Bax
Site Admin
Posts: 4508
Joined: 29 Mar 2005, 09:50
Location: Italy
Contact:

Re: IPv6 support

Postby Bax » 20 Oct 2016, 07:52

You can write to info AT smartfoxserver DOT com.
We need IP and DNS name of your EC2 instance; if possible, please also activate the "BasicExamples" Zone, so we can also login with our test client. Thanks.
Paolo Bax
The SmartFoxServer Team
weberekt
Posts: 35
Joined: 16 Sep 2014, 00:47

Re: IPv6 support

Postby weberekt » 20 Oct 2016, 08:01

Bax wrote:You can write to info AT smartfoxserver DOT com.
We need IP and DNS name of your EC2 instance; if possible, please also activate the "BasicExamples" Zone, so we can also login with our test client. Thanks.



Email sent
User avatar
Bax
Site Admin
Posts: 4508
Joined: 29 Mar 2005, 09:50
Location: Italy
Contact:

Re: IPv6 support

Postby Bax » 20 Oct 2016, 13:23

weberekt, what Unity version are you using?
I'm asking because we are experiencing the same issue in Unity 5.1.3, but everything works fine in Unity 5.3.5.
Paolo Bax
The SmartFoxServer Team
weberekt
Posts: 35
Joined: 16 Sep 2014, 00:47

Re: IPv6 support

Postby weberekt » 21 Oct 2016, 03:07

Bax wrote:weberekt, what Unity version are you using?
I'm asking because we are experiencing the same issue in Unity 5.1.3, but everything works fine in Unity 5.3.5.


I was using 4.7.1

I upgraded it to 4.7.2 today and it works

Thanks for the helps
CrazyKolobok
Posts: 4
Joined: 11 Nov 2016, 15:22

Re: IPv6 support

Postby CrazyKolobok » 12 Nov 2016, 20:40

Hello,

I tested my client application with SFS 2X 2.11 in IPv6 network as described in Test 3 diagram. TCP connection works fine, but I have a problem with initialization of UDP protocol. Method initUDP (I use Unity C# API 1.6.6) always return false. In IPv4 network TCP and UDP work with no errors.

Step by step:
1) Client connect to SFS 2X server by TCP (use domain + port) -> Success
2) Client send LoginRequest by TCP -> Success
3) Client get SFSEvent.LOGIN event from server by TCP -> Success
4) Client init UDP (call SmartFox.InitUDP() method) -> Success
5) Client get SFSEvent.UDP_INIT event with parameter "success" == false -> Error

SFS is bound to an IPv4 address

Code: Select all

  <socketAddresses>
    <socket address="46.229.166.158" port="9934" type="TCP"/>
    <socket address="46.229.166.158" port="9934" type="UDP"/>
  </socketAddresses>

Where is the mistake?

Thanks for your help.
User avatar
Bax
Site Admin
Posts: 4508
Joined: 29 Mar 2005, 09:50
Location: Italy
Contact:

Re: IPv6 support

Postby Bax » 14 Nov 2016, 10:24

I don't think you are making any mistake. What specific version of Unity are you using? (for example 5.3.5f1)
Paolo Bax
The SmartFoxServer Team
CrazyKolobok
Posts: 4
Joined: 11 Nov 2016, 15:22

Re: IPv6 support

Postby CrazyKolobok » 14 Nov 2016, 10:42

Bax wrote:I don't think you are making any mistake. What specific version of Unity are you using? (for example 5.3.5f1)


We are using Unity 5.4.2f2 (client C# API 1.6.6). Also I use client in Java (Java API 1.7.0) for debug and testing our game API. Java client also works fine in TCP network, but doesn't init UDP protocol.

Return to “SFS2X Questions”

Who is online

Users browsing this forum: No registered users and 53 guests