On iOS ipv6-only new rules

Source: Internet
Author: User

May Apple issued the new rules, for developers only need to do the following points can be smoothly online!

1. Apple from June 1 onwards, apps that provide app Store audits must be compatible with the latest Internet Protocol--IPV6-ONLY standards for hardware identification and network routing. In other words, if it is not compatible, it will not be able to audit on-line.

2. What is Ipv6-only (64-bit encoded address), when it is the latest Internet protocol, we used to most of the IPV4 (32-bit encoded address), for example:192.168.1.1 However, such an address is not enough!! So there is an address like 2001:da8:215:4009:250:56ff:fe97:40c7 , such address is called IPV6 address. At this time, a network card will use both addresses, but will only use IPV6 in the future. In general, devices that use these two addresses are not accessible to each other, but later through some excessive processing of the old can allow them to access each other in some cases. (Dns64/nat64)

3. How do I meet Apple's requirements?

(1) Use the domain name (for example: www.baidu.com) in the application, do not use IPV4 address anywhere (for example: 114.255.40.60)

(2) Does our server need to be changed to IPV6 address? This is not required, but the domain name (or hostname) must be used to represent the server!

(3) Use a higher-level network API to avoid using the socket API.

  

That is to say, WebKit, (nsurl,nsurlsession,nsurlrequest,nsurlconnection), Cfnetwork are able to support IPV6.

If you cannot avoid using a socket, refer to https://tools.ietf.org/html/rfc4038

(4) Check the IPV4 code:

  inet_addr()  inet_aton()  inet_lnaof()  inet_makeaddr()  inet_netof()  inet_network()  inet_ntoa()  inet_ntoa_r()  bindresvport()  getipv4sourcefilter()  setipv4sourcefilter()

4. How to create a ipv6-only test environment? MacOS provides this functionality. Use your MAC to share your wired network with WiFi and check the Create NAT64 network in the middle.

5.ipv6 Client access to IPV4 server principle? First of all, this is not directly accessible and must be supported by the network provider for transition technology.

(1) The first step: NDS pollution: For example, we want to access example.com , assuming that this site only IPv4 address (93.184.216.34, with 16 binary representation as 5d B8 D8 22), then, is "contaminated" The IP address returned by DNS is 64:ff9b::5db8:d822. Where ' 64:ff9b::/96 ' is the IANA assigned prefix used for DNS64.

(2) Step two: IPv6 to IPv4: When visiting 64:ff9b::5db8:d822 , IPv6 Baotou is replaced with IPv4 Baotou and continues to visit. The packets that come back at the same time are processed in reverse.

For details, see RFC6146, RFC6147

  

On iOS ipv6-only new rules

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.