Linux - Localhost does not work under Chrome in offline mode

December 2016




Issue


When you want to access your website locally withChrome, under Linux and you're not connected to internet, then it displays a error message:

Solution

  • To fix this issue, just launch the browser with IPv6 enabled (in a terminal, or a shortcut):
  • google-chrome --enable-ipv6
  • or for chromium:
  • chromium-browser - enable-ipv6
  • From now on, you can access an http://localhost/ even if you are disconnected from the web.


Related :

This document entitled « Linux - Localhost does not work under Chrome in offline mode » from CCM (ccm.net) is made available under the Creative Commons license. You can copy, modify copies of this page, under the conditions stipulated by the license, as this note appears clearly.