Your error message "Incorrect access detected, this server may be accessed only through.." is not a Moodle localized string nor a message sent by OK tech, so I suspect it belongs to the generated client library for iOs . Something like server address changed between stub generation and your utilisation.
Cheers.