We have a WiFi hotspot setup with no internet. A website has been hosted locally on a server connected to the same hotspot. Necessary DNS entries have been made in the Access Point to ensure the DNS query for a particular web address (say http://www.facebook.com) resolves to ip address of the server. Users are expected to access only single website (facebook.com) on the WiFi which is hosted on the server. Some users that have cellular data turned on connect to the WiFi hotspot. These users when they enter web address (facebook.com), instead of the phone using the WiFi connection to get to the locally hosted website, the phone turns to cellular data and opens the website hosted locally.
Any clues why could this is be happening?
Is it because the user previously access the web address on internet and the ip address was cached by the browser. And now when the user enters the same url in their browser when connected our WiFi, the browser directly queries the router for the IP address. And since there is no internet on our WiFi, the phone automatically switches to cellular data.