I am trying to make an ios app, where the app must work in intranet connection only, and if tried to hit api endpoint from different network, the app should show alert dialog. I tried working with apple's reachability code.. I dont have host name but ip of my host case scenario:
when connected to different network, it says not connected and api call also fails.. what needs to be
but when connected to same network, the endpoint is giving me success response, but the reachibility still says, not connected
thanks in advance