title: NSAllowsArbitraryLoads not working for ip address
body: <p>I am trying to get my app to connect to an http server at 152.111.198.244 through the Apple Transport Security. And nothing I'm trying works.</p>
  
  <p>Adding the NSAllowsArbitraryLoads key to the info.plist file of my project still did not allow my app to connect to this specific ip address 152.111.198.244
  I have gone through the <a href="https://developer.apple.com/library/watchos/technotes/App-Transport-Security-Technote/index.html" rel="nofollow noreferrer">technote</a> on Apple Transport Security. I installed OSX 10.11 to try and find what settings might work for the URL using</p>
  
  <pre><code>nscurl --ats-diagnostics http://152.111.198.244
  </code></pre>
  
  <p>and</p>
  
  <pre><code>nscurl --ats-diagnostics http://152.111.198.244/publications/
  </code></pre>
  
  <p>in the terminal. All settings that nscurl tries fail. I have looked at similar questions <a href="https://stackoverflow.com/questions/32951267/nsallowsarbitraryloads-not-working/33034074#33034074">NSAllowsArbitraryLoads not working</a> and <a href="https://stackoverflow.com/questions/32695030/nsexceptionallowsinsecurehttploads-not-working-for-ip-addresses">NSExceptionAllowsInsecureHTTPLoads not working for ip addresses</a> and have not found the solution. I also looked <a href="https://forums.developer.apple.com/message/32130#32130" rel="nofollow noreferrer">here</a> and the NSExceptionMinimumTLSVersion key proposed there doesn't work.</p>
  
  <p>I am starting to think that there may be a bug somewhere, or something that I missed. Are IP addresses an issue with Apple Transport Security? Why? Is there way to make an IP address work through ATS?</p>
  
  <p>UPDATE: I added in the specific ip address that is giving me trouble. Hopefully someone will be able to replicate what I'm talking about.</p>
  
  <p>UPDATE: I logged this as a bug in radar and I got a message that says it's a duplicate. In the meantime, the IP address mentioned in this question has a domain name now <a href="http://3d.media24.com/" rel="nofollow noreferrer">http://3d.media24.com/</a> but unfortunately it has not solved the problem.</p>
  
  <p>UPDATE: I marked an answer as correct. It seems that apple fixed this with XCode7.1 and that the keys for Apple Transport Security have changed a bit. The site in question has also been updated for https connections.</p>