In fact, the real problem is that in iOS 9, ATS exceptions do not work with IP addresses. It only works with domain names. Disabling ATS in general is a bad idea, and you will justify this decision if you want to send it to the application store after 12/31/2016.
Unfortunately, there is no good solution for this, so as not to get the domain name for the server you are trying to connect to.
Others have successfully used the xip.io service to "translate" a local IP address into a domain name. So you added xip.io to the exception clouds, set the value under NSIncludesSubdomains to true. Then, when you connect to your domain, instead of connecting to 52.24.145.252 you should connect to 52.24.145.252.xip.io
source share