I can't open my WorPress Admin site in the browser

I have just installed Local WP and created a new site. When I start the site and open it in the browser it works but if I try to access WordPress admin via the “Admin Button” I get a 404 Not Found error image|689x315

I tried to create new sites and all of them have the same issue. I have 64-bit Windows Home computer. And also when Initially created the first website I got an error message:“Warning! This site’s WordPress URL settings do not match the host set in Local”

So then I have done some research and came to the conclusion I needed to change the “Router Mode” from “Site Domains” to “localhost”

It did make me able to access the website but not the Admin page.

Attached you can find the Local’s and Local’s Router Log.
local-lightning.log (102.5 KB) error.log (2.4 KB)

Any help will be greatly appreciated. Thank you.

i have the same problem but the topic was closed and there’s no reply. How can i fix it please?

Same problem here so I’ve reverted to v5.9.8 which does not have this bug.
If you can’t revert, in Local’s preferences set your router mode to localhost. You’ll need to then manually enter the site’s port number into the URL to get to admin. eg. http://localhost:10013/wp-admin/
You can find the correct port number in the Site Host info in the Overview tab in Local, or in the browser when you open it via Local.
Screenshot 2021-02-24 at 11.24.23 am

Thank you… I solved with your second suggest

Thanks for helping us zero in on this regression! I’ll get a bug report written for our team to work on soon!

Issue Summary

having trouble with localhost saying sites can’t be reached. I have one site that seems to still be working fine, but the rest of them either don’t connect at all, or only connect to view but the admin won’t connect.

Troubleshooting Questions

  • Does this happen for all sites in Local, or just one in particular?
    Happens for all the ones I’m currently using, and ones that I add.

  • Are you able to create a new, plain WordPress site in Local and access it in a Browser?
    I can create a site, but like the others it will display but throws the error when trying to access the admin


Describe the steps that others can take to replicate this issue. If you have screenshots that can help clarify what is happening, please include them!

System Details

  • Which version of Local is being used?
    Version 5.9.+5246

  • What Operating System (OS) and OS version is being used?

    • _For example: macOS Catalina 10.15.7
  • Attach the Local Log. See this Community Forum post for instructions on how to do so:

1 Like

Exactly the same here, happened suddenly, cant access any admin areas for any of my sites on Local, the front end (visit site) views everything ok,

I have the latest version downloaded from the website. I am on windows 10, I have tried changing the PHP version to see if that makes a difference and also tred different sites with different wordpress versions but still getting the error 'localhost refused connection as stated by the creator of this topic… help please! :frowning:

edit: just to clarify this is on my local computer.

I’m on a Mac and I entered Time Machine and went back to last weeks version and everything is working. Apparently, an update happened last night and messed things up.

Daniel Riggs

So I figured out a workaround that seems to work for me that doesn’t involve rolling back the version with time machine. I’ve attached a screenshot showing it. Basically, if you add the missing # after localhost and change the cache-buster number to match the working “visit site” link, then you can access the admin login.

thank you for the work-around! At least I can continue to work now… thanks again both for your replies!


Hey @davidklotz11, @nspark21, @dannyj – sorry for the regression that the 5.9.9 version introduced. I’ve merged your topic with this one to keep them together.

The Local team is aware of this bug and should have a fix ready soon.

In the meantime, you can either downgrade to version 5.9.8 or manually add the port number just after localhost in the browser’s address bar.

Thank you, Ben.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.