Cannot access ghost local server from other machine

I have installed ghost locally for theme development. Running ghost from http://localhost:2368 works fine. But I am not able to access the ghost server from another computer on the same network using the ip address of the current machine. Something like this - 192.168.1.2:2368 - It says ERR_CONNECTION_REFUSED

I installed simple http server and tried with that. I was able to access it from other computer using the ip address and port combination. Checked everything related to firewall and looks like its just Ghost that is not working.

Do I need to do anything special to make the development version of ghost accessible over local network?

  • What’s your URL? This is the easiest way for others to debug your issue
    localhost:2368
  • What version of Ghost are you using?
    3.22.1
  • What configuration?
    Windows 10
  • What browser?
    Chrome
  • What errors or information do you see in the console?
    ERR_CONNECTION_REFUSED
  • What steps could someone else take to reproduce the issue you’re having?

Edit the config.development.json & define your local machine IP instead of localhost or 172.0.0.1 see below

"url": "http://yourdomain.com or IP",
  "server": {
    "port": 2368,
    "host": "192.168.1.2"
  },

Thanks man. That works.

1 Like

You are welcome … :slight_smile: