I got the below error, while calling API from my iOS app (device) to server.
My device is connected to IPv6 network & API which i am calling is with IPv4 network. I created the app using swift and i am using Alamofire for calling API and Reachability for checking Internet connection. What should i do for this. Please suggest on the below error.
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}}}