Unable to connect to API on port 3000 or 13110

I have Metabase downloaded and running locally on my Mac. I'm following the documentation which says to run this curl command:

curl -X POST \
  -H "Content-Type: application/json" \
  -d '{"username": "person@metabase.com", "password": "fakepassword"}' \
  http://localhost:3000/api/session

But when I run this command, I get the following error:

curl: (7) Failed to connect to localhost port 3000: Connection refused

I noticed in my Metabase settings that it's running on port 13110, so I tried changing the curl command to connect to http://localhost:13110 instead of :3000, but I get the same Connection refused message.

Any ideas what's going on?

Hi @natea
I would highly recommend not using the Mac App - use the JAR instead.
Metabase does not control the port used, when using the Mac App, so that's likely the problem. It's a random port it gets assigned, so quite possibly it's not even 13110 either.

Thanks, that did the trick!