Site Host change , cant access database

What you’re describing sounds like Local was trying to use the default port of 80, but something else was already listening on that port.

Because only one tool can use that port at a time, Local reverted to localhost Router Mode.

You’ll need to either:

  1. Stop both applications, and only start the one that you are wanting to use at that time.
  2. Re-work the code to use the direct localhost:10008 connection

It’s hard to say what the other piece of software is that is using port 80. Here are a few other forum topics that are related to what you are seeing:

Since you are on a Mac, this might help you zero in on the other application that is preventing Local from using Port 80:

sudo lsof -i ':80'

Once you figure out what’s occupying that port and stop it, then you can navigate to “Preferences > Advanced > Router Mode” in Local, and change it to Site Domains to have Local attempt to use port 80 again for the pretty URLs.

Here’s a help doc that has more info about Local’s Router Mode:

1 Like