Afnetworking: Does 2.6.2 support ipv6?

Created on 6 May 2016  ·  17Comments  ·  Source: AFNetworking/AFNetworking

reachability stale

Most helpful comment

Apple updated their reachability example to support IPv6, the readme has pointed out the changes that were made that pertain to IPv6. It seems that since AFNetworking is using SCNetworkReachabilityCreateWithName and SCNetworkReachabilityCreateWithAddress, it will work with IPv6. Additionally, using the IP of 0.0.0.0 is valid in sharedManager initializer because it works on an IPv6 network.

I have been digging into this for several hours now, so wouldn't mind another opinion.

All 17 comments

As lined out in Apple's support docs, using CFNetwork and NSURLSession will allow you to support IPV6.

However, I don't think the reachability classes support IPV6.

We would entertain potentially releasing a patch version of AF 2.x that supports it, given the announcement from Apple.

Thanks,appreciate that.

ETA for the patch version of AF 2.x?

hi , Did reachability of 2.x has supportted IPv6?

+1

Apple updated their reachability example to support IPv6, the readme has pointed out the changes that were made that pertain to IPv6. It seems that since AFNetworking is using SCNetworkReachabilityCreateWithName and SCNetworkReachabilityCreateWithAddress, it will work with IPv6. Additionally, using the IP of 0.0.0.0 is valid in sharedManager initializer because it works on an IPv6 network.

I have been digging into this for several hours now, so wouldn't mind another opinion.

Thanks for the notes here @ryancrosby.

Obviously we're still a bit confused in terms of what this all means from an app rejection standpoint. If we can avoid rev'ing 2.x, thats obviously the best path to choose here.

Anyone else have any insight?

I made tests with 2.6.2 on my app creating a NAT64 sharing connection from my mac (as Apple recommended), and all seems to work.

Another option is to replace the Reachability class of 2.6.x with the last version 3.x of the reachability class. It compiled for me without problems...

I also test my app in version 2.5.2. It seems everything work fine in NAT64 sharing network

where I could get a patch version of AF 2.x that supports ipv6 ? please help me

Hi!
Same question as @249687zhang
Im using version 2.5.3 of AFNetworking

Thanks!

Hi all,

We also need a patch for reachability in AF 2.x for IPv6. We cannot use AF 3 due to other dependencies.

What is the ETA, please?

Maybe you can download last version of AFN, and replace the Reachability classes with the new ones in 2.x. It will compile, I tested it.

Thanks @abournier I'll give it a try :)

+1

This issue has been marked as stale because it has not had recent activity. It will be closed if no further activity occurs.

This issue has been auto-closed because there hasn't been any activity for at least 21 days. However, we really appreciate your contribution, so thank you for that! 🙏 Also, feel free to open a new issue if you still experience this problem 👍.

Was this page helpful?
0 / 5 - 0 ratings