NSURLErrorCannotConnectToHost
An attempt to connect to a host failed.
Declaration
var NSURLErrorCannotConnectToHost: Int { get }Discussion
This can occur when a host name resolves, but the host is down or may not be accepting connections on a certain port.
See Also
URL Errors
NSURLErrorAppTransportSecurityRequiresSecureConnectionNSURLErrorBackgroundSessionInUseByAnotherProcessNSURLErrorBackgroundSessionRequiresSharedContainerNSURLErrorBackgroundSessionWasDisconnectedNSURLErrorBadServerResponseNSURLErrorBadURLNSURLErrorCallIsActiveNSURLErrorCancelledNSURLErrorCannotCloseFileNSURLErrorCannotCreateFileNSURLErrorCannotDecodeContentDataNSURLErrorCannotDecodeRawDataNSURLErrorCannotFindHostNSURLErrorCannotLoadFromNetworkNSURLErrorCannotMoveFile