1 Reply
      Latest reply: Oct 27, 2016 2:22 AM by eskimo RSS
      flexier Level 1 Level 1 (0 points)

        SCNetworkReachabilityCreateWithName(NULL, "www.google.com") does work fine,


        SCNetworkReachabilityCreateWithName(NULL, "https://domino.ese-edu.com") or

        SCNetworkReachabilityCreateWithName(NULL, "https://scanner.ese-edu.com:50443")

         

        Always fails although both URLs hit a working and responding server.

         

        Are there any special communication (port?) requirements for this function to work?

        • Re: SCNetworkReachabilityCreateWithName not working for all URLs
          eskimo Apple Staff Apple Staff (7,835 points)

          You’re not supposed to pass URLs to SCNetworkReachabilityCreateWithName; it takes a DNS name.  So your second example should be:

          SCNetworkReachabilityCreateWithName(NULL, "domino.ese-edu.com")
          

          Share and Enjoy

          Quinn “The Eskimo!”
          Apple Developer Relations, Developer Technical Support, Core OS/Hardware
          let myEmail = "eskimo" + "1" + "@apple.com"