# Can't connect to node HTTP server running on localhost

**URL:** <https://discuss.circleci.com/t/cant-connect-to-node-http-server-running-on-localhost/19857>\
**Category:** Programming Languages\
**Created:** [February 5, 2018, 11:57am UTC](https://discuss.circleci.com/t/cant-connect-to-node-http-server-running-on-localhost/19857 "2018-02-05T11:57:51Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![sdubois](https://sea2.discourse-cdn.com/circleci/user_avatar/discuss.circleci.com/sdubois/32/10757_2.png) [@sdubois](https://discuss.circleci.com/u/sdubois)\
**Post date:** [February 10, 2018, 1:22pm UTC](https://discuss.circleci.com/t/cant-connect-to-node-http-server-running-on-localhost/19857/6 "2018-02-10T13:22:29Z")

</div>

I have configured my `package.json` with this:

```auto
  "scripts": {
    "build": "gatsby build",
    "start": "gatsby serve",
    ...
  }

```

So first the build is run, which produces static HTML/CSS/JS, then gatsby serve just spins an HTTP server serving those assets from localhost:9000. As the screenshot above shows, that command starts fine: “Running on port 9000”.

---

_[View the full topic](https://discuss.circleci.com/t/cant-connect-to-node-http-server-running-on-localhost/19857)._
