Http://localhost:13165 This site can’t be reached: localhost refused to connect

Hi, I’m using OSX trying metabase 0.37.2 in my localhost with postgres db. All connection is good in the metabase app so I can create dashboard analytics, ask questions, etc.

In the app setting, it’s said HTTP://localhost:13165 for the site URL, but the moment I visited that URL it raised This site can’t be reached: localhost refused to connect. Could you guys help me to solve this problem? Thanks in advance

Here’s my diagnostic info

  "browser-info": {
    "language": "en",
    "platform": "MacIntel",
    "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko)",
    "vendor": "Apple Computer, Inc."
  "system-info": {
    "file.encoding": "UTF-8",
    "": "OpenJDK Runtime Environment",
    "java.runtime.version": "11.0.7+9-202002041938",
    "java.vendor": "AdoptOpenJDK",
    "java.vendor.url": "",
    "java.version": "11.0.7",
    "": "OpenJDK 64-Bit Server VM",
    "java.vm.version": "11.0.7+9-202002041938",
    "": "Mac OS X",
    "os.version": "10.15.7",
    "user.language": "en",
    "user.timezone": "Asia/Jakarta"
  "metabase-info": {
    "databases": [
    "hosting-env": "osx",
    "application-database": "h2",
    "application-database-details": {
      "database": {
        "name": "H2",
        "version": "1.4.197 (2018-03-18)"
      "jdbc-driver": {
        "name": "H2 JDBC Driver",
        "version": "1.4.197 (2018-03-18)"
    "run-mode": "prod",
    "version": {
      "date": "2020-11-16",
      "tag": "v0.37.2",
      "branch": "release-x.37.x",
      "hash": "25e5f70"
    "settings": {
      "report-timezone": null

Hi @amethyst
The Mac App will use a dynamic port, so it might have changed, since you setup Metabase initially.
I would recommend that you use JAR or Docker:
And remember to migrate away from H2 if you are using Metabase in production:

1 Like

Thanks for the answer