Do more on the web, with a fast and secure browser!

Download Opera browser with:

  • built-in ad blocker
  • battery saver
  • free VPN
Download Opera

Opera won't connect to localhost

  • Opera suddenly won't connect to localhost. Windows 10, Wampserver 3.1.7 64bit. All four other browsers connect perfectly - Chrome; Firefox; MS Edge and even IE!
    Opera was working ok but, for no apparent reason has stopped connecting localhost. No problems with remote web sites.
    Help please?

  • @oldcelt said in Opera won't connect to localhost:

    Opera suddenly won't connect to localhost. Windows 10, Wampserver 3.1.7 64bit. All four other browsers connect perfectly - Chrome; Firefox; MS Edge and even IE!
    Opera was working ok but, for no apparent reason has stopped connecting localhost. No problems with remote web sites.
    Help please?

    I confirm the same behaviour.

  • Obvious question: VPN enabled? No proxy can access data on localhost.

  • This is happening across multiple browsers. The issue is that localhost is being redirected to https://localhost, and that https connection is what is failing. Try it on your browser: type localhost in the address bar, delete any extra text that your browser adds after it, then press enter. If the address bar shows https, then you have the problem that I'm describing.

    To fix the above issue, update your hosts file using Run as Administrator. In Windows, c:\windows\system32\drivers\etc\hosts, and in Linux: /etc/hosts.

    Update the line that has 127.0.0.1 in it (or add a new one). If you have an existing line with a # sign in front of it, delete the # sign. The new entry should look like this:

    127.0.0.1 localhost me.localhost

    Save and close the file, then connect to me.localhost.

  • @thomasmca
    You'll notice that my original post said that all other browsers were connecting normally. I don't know why but after re-installing Opera all was well.
    #sgunhouse suggested the possible use of a VPN but that was not the case.

Log in to reply