Search Unity

IPv6 & Apple - passing DNS64/NAT64 test locally, but build rejected

Discussion in 'Connected Games' started by Nicolas1212, Jun 14, 2016.

  1. Nicolas1212

    Nicolas1212

    Joined:
    Dec 18, 2014
    Posts:
    139
    Hi all,

    Following the new iOS submission requirements that apps support IPv6, we've been testing our build using the steps to set up a local DNS64/NAT64 network as outlined here: https://developer.apple.com/library...tml#//apple_ref/doc/uid/TP40010220-CH213-SW16

    We're able to connect and play locally, however when submitting for Apple, the build is being rejected for failure to connect to a network.

    Is anyone in the same situation and shed a bit of light on what's going wrong and how to fix it?

    We're using TpcClient for socket connection if it makes a difference.
     
  2. Nicolas1212

    Nicolas1212

    Joined:
    Dec 18, 2014
    Posts:
    139
  3. lightbreak

    lightbreak

    Joined:
    May 24, 2014
    Posts:
    6
    Hi ya'll, wish i can help but im having the same issue, did you guys check http://test-ipv6.com/ on your ios device to double check if it did go ipv6 locally?
     
  4. Nicolas1212

    Nicolas1212

    Joined:
    Dec 18, 2014
    Posts:
    139
    Hi lightbreak,

    Thanks for responding. We're currently going through the NAT64 network, which is sharing the connection, so our external IP is still the IPv4 version, as our network provider doesn't support IPv6 yet.

    From what I understand though, this should be enough to pass Apple validation, as the NAT64 network should perform the necessary conversions to and from IPv6.

    When we look at the logs on connecting, we try IPv4 first, and when we get no response, we try IPv6, which will work. Printing the IP of the RemoteEndPoint gives us a proper IPv6 ip as expected.
     
  5. tobiass

    tobiass

    Joined:
    Apr 7, 2009
    Posts:
    2,251
    I guess you have to favor the IPv6 instead of trying the IPv4 first.
     
  6. ezio_auditore

    ezio_auditore

    Joined:
    Nov 29, 2014
    Posts:
    2
    Bump. we are also facing the same issue. the app is able to connect to a ipv4 server through Apples recommended NAT64 setup and we do see an ipv6 address being used while creating the socket but the app is getting rejected by Apple as its failing their ipv6 test on their end. Any info would be helpful.
     
  7. Nicolas1212

    Nicolas1212

    Joined:
    Dec 18, 2014
    Posts:
    139
    tobiass likes this.