2026

NSURLConnection method use with IPv6

Question:

I have code my project using SOAP methods in NSURLConnection.Recently new version update reject it cause of ipV6 issue for ios9+

Now i check that for supporting ipV6 you need to convert code to standard networking APIs like NSURLSession and CFNetwork APIs provided by apple.

Is there alternative without converting my more then 350+ api , it will work with ipV6 .

Answer1:

Now that NSURLConnection has been deprecated it's just a question of time before your code stop working with new iOS updates. So whatever, you'd better plan using newer APIs, sooner or later.

NSURLConnection should still work with IPv6 tho. Are you sure it's not because you have been using an IP literal instead of domain name ? Ex: using IP like 123.123.23.3 is forbidden.

Also; please take a look at <a href="https://developer.apple.com/library/ios/documentation/NetworkingInternetWeb/Conceptual/NetworkingOverview/UnderstandingandPreparingfortheIPv6Transition/UnderstandingandPreparingfortheIPv6Transition.html" rel="nofollow">the transition guide</a>.

It should hint what triggered apple rejection

Recommend

  • change user agent multiple times
  • IOS load images from URL using SDWebImage
  • Can't resolve “Ambiguous use of subscript”
  • How to POST JSON data using NSURLSession in swift
  • iOS: Strategies for downloading very large data from web
  • Social networking integration with OAuth in iPhone
  • Better to use long or long long in 64 bit
  • error 9 the bootstrap could not be loaded. device connectivity component
  • Oracle More than one materialized view on a materialized log
  • Java Template library similar to ZPT (attribute language)
  • Drop packet with libpcap
  • tcpdf encode chinese character
  • How does socketcan handle arbitration?
  • Client-side prediction & server reconciliation
  • What are “Java EE 7 API Library” and “Java EE Web 7 API Library” and when to use them?
  • How can i automate 'Settings' app in real iOS devices?
  • Select column where another related column's total is 0
  • Get rendered html code in Backing Component from Composite Component
  • record audio in HTML / js without Flash?
  • creating instance of object using reflection , when the constructor takes an array of strings as arg
  • Alamofire and Reachability.swift not working on xCode8-beta5
  • Implement JwtBearer Authentication in NSwag SwaggerUi
  • Access user's phone number on iOS 7
  • Enabling DTD support in Sql Server
  • Convert SQLite database to XML
  • Implementing “partial void” in VB
  • Convert Type Decimal to Hex (string) in .NET 3.5
  • WPF Visiblity Binding to Boolean Expression with multiple Variables
  • Conversion from string “a” to type 'Boolean' is not valid
  • What's the purpose of QString?
  • How to use carriage return with multiple line?
  • iOS: Detect app start via notification press
  • How to attach a node.js readable stream to a Sendgrid email?
  • Control modification in presentation layer
  • Hazelcast - OperationTimeoutException
  • Adding custom controls to a full screen movie
  • RestKit - RKRequestDelegate does not exist
  • Confusion with PayPal's monthly billing cycle
  • Arrays break string types in Julia
  • Revoking OAuth Access Token Results in 404 Not Found