title: App Transport Security and IP addresses in iOS9
body: <p>I develop my iOS app using a local server running on my dev box. When testing on devices, I connect directly via an IP address, which is over HTTP and not HTTPS (so I don't have to deal with self-signed certs while in development, which the device wouldn't even like anyways). </p>
  
  <p>I thought that this would be sufficient:</p>
  
  <p><img src="https://i.stack.imgur.com/GGeFr.png" alt="enter image description here"></p>
  
  <p>However,  cannot get it to work without also adding <code>NSAllowsArbitraryLoads = YES</code>, AKA this:</p>
  
  <p><img src="https://i.stack.imgur.com/dZgEE.png" alt="enter image description here"></p>
  
  <p>Now, I will have to remember to remove this when rolling a production build but not during development...arg. Should the <code>NSExceptionDomains</code> work with IP addresses, and if not, is there anything else I can do without also enabling <code>NSAllowsArbitraryLoads</code>?</p>