Android - access to a local host from a browser without an Internet connection

I installed a local web server on my Android tablet. But when all connections are disconnected, every time I access the local site from the built-in browser (or Chrome), I get an annoying pop-up message saying "no Internet connection" or something about the SIM card ... is there a way avoid this?

+8
android
source share
3 answers

Most browsers will check your Internet connection when they start. What you can do (depending on how you plan to use it):

If you decide to change the existing browser, I would recommend lightning, because (as if I had a quick look at the strings.xml file). It does not check your internet connection.

+3
source share

The problem may be caused by the HTTP proxy server. Proxies help manage network traffic on the provider side, but it may and may violate access to local addresses. Proxy settings may be available on your network settings, but on many phones these settings are hidden. An application such as HTTP Proxy Settings will provide access to hidden settings. Just clear the hostname and port for non-core access. Make sure to write down the initial values ​​so that the changes can be undone.

If your device is configured to use a web proxy, it will never connect directly to localhost: it connects to the web proxy and asks what you really want for the web page. This will not work with the local web server.

To use the local web server, disable the web proxy settings.

Original answer
Original answer β„–2

+2
source share

as a complement to @hermann's answer, the localhost address on Android devices is 10.0.0.2 (this is the equivalent of the address 127.0.0.1 ). So try using 10.0.0.2 and share your result with us :)

+1
source share

All Articles