Use CFNetwork to connect on iOS/Mac OS.