Android - access local host from browser without internet connection

android

Solution

Most Browsers will check for an Internet connection when they start. What you can do (depending on how you are planning to use it):

- Use WebView or Chromium Webview to create your own "browser"

- Modify an existing browser: android default browser or lightning

If you choose for an existing browser to modify, I would recommend lightning because (as a quick look at the strings.xml file would suggest) It does not check for an internet connection.

Problem

I've installed local web server on my android tablet. But when all connections are off, every time I access the local site from built in browser (or Chrome), I get annoying popup message about "no internet connection" or something about sim card... is there any way to avoid that?

Original source