How to handle IPv4 Address literals for IPv6-only network in iOS8

Hello ,

I am implementing my application to be compatible for IPv6-only networks. Is there any way to handle the hardcoded IPv4 address literals (such as 172.1.2.3) in iOS8.x ?

As per the apple documentation,

- In iOS 9 and later, NSURLSession and CFNetwork automatically synthesizes IPv6 addresses from IPv4 literals locally on devices operating on DNS64/NAT64 networks.

- The ability to synthesize IPv6 addresses was added to getaddrinfo() in iOS 9.2.

In my ecosystem I need to use hardcoded literals due to certain protocols being used such as XMPP . I have referred below queries on this forum for IPv4 literals handling

https://forums.developer.apple.com/message/138765#138765

https://forums.developer.apple.com/thread/47312

But there is no mention of how to handle address literals for iOS8.x.


Thanks!

There’s two things to read here:

Share and Enjoy

Quinn “The Eskimo!”
Apple Developer Relations, Developer Technical Support, Core OS/Hardware

let myEmail = "eskimo" + "1" + "@apple.com"

WWDC runs Mon, 13 Jun through to Fri, 17 Jun. During that time all of DTS will be at the conference, helping folks out face-to-face. http://developer.apple.com/wwdc/

How to handle IPv4 Address literals for IPv6-only network in iOS8
 
 
Q