3 Replies
      Latest reply on Nov 21, 2016 2:23 AM by eskimo
      SuperMacGuy Level 1 Level 1 (0 points)

        I was reading another post, so if someone can clarify that would be great.


        Does ATS apply to direct IP addresses? IE, calling NSURLSession with a URL like "http://192.700.200.21:8080/someRestService/somedata

        where the URL is an IP address with numbers, not a DNS name or www.website.com or api.website.com address?


        Thanks. Chris

        • Re: Does ATS care about IP addresses?
          eskimo Apple Staff Apple Staff (13,395 points)

          It’s hard to answer this in the general case.  For the specific example you posted, where you’re trying to connect to an IP address on the local network, you can opt out of ATS in that case using NSAllowsLocalNetworking.

          If you have other cases you care about, please post the details.

          Share and Enjoy

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