I am trying to configure an Android phone as a local web server, where people can directly connect to the phone (hotspot) and browse the content hosted locally on the phone (no internet access available). Similar to a or .
Web hosting part is straightforward with an app like . However navigating to the hosted site is a little cumbersome as you have to know the local IP of the server. So I am looking for a way to automatically forward everyone who connects to the hotspot to a particular IP (that of the webserver). Similar to how most public WiFi networks take you to a login page when you connect?
Does anyone know how to do this easily (on a non-rooted phone)?