Hello! Here recently gathered nginx on Android . Began to test. I noticed such a thing that when I turn off Wifi on my phone, the site on localhost stops working. What can this be caused with? Thanks in advance!

  • one
    probably either the browser cannot convert the name ( localhost ) to the ip-address (most likely 127.0.0.1 ), or it cannot contact this ip-address, or nginx stops listening to this address (for example, it stops working). - aleksandr barakin

1 answer 1

I think that the browser checks whether there is an Internet connection before sending a request, and if it doesn’t, then there’s no point in sending a request, it won’t come, why try? . Try a different browser, for example

  • Thank! I somehow did not even think about it - HackMemory