I got the following error when calling the API from my iOS application (device) to the server.
My device is connected to an IPv6 network and the API that I am calling is with an IPv4 network. I created the application using swift, and I use Alamofire to call the API and Reachability to check my internet connection. What should I do for this. Please suggest an error below.
Request failed with error: Error Domain=NSURLErrorDomain Code=-1003 "A server with the specified hostname could not be found." UserInfo= {NSErrorFailingURLStringKey=, _kCFStreamErrorCodeKey=8, NSErrorFailingURLKey=, NSLocalizedDescription=A server with the specified hostname could not be found., _kCFStreamErrorDomainKey=12, NSUnderlyingError=0x7a08c530 {Error Domain=kCFErrorDomainCFNetwork Code=-1003 "(null)" UserInfo= {_kCFStreamErrorDomainKey=12, _kCFStreamErrorCodeKey=8}}}
ios swift ipv4 ipv6 alamofire
VJVJ Jul 27 '16 at 5:53 2016-07-27 05:53
source share