# Can't connect to react.js project from circle-ci

**URL:** <https://discuss.circleci.com/t/cant-connect-to-react-js-project-from-circle-ci/40208>\
**Category:** Running Tests\
**Created:** [May 27, 2021, 4:54pm UTC](https://discuss.circleci.com/t/cant-connect-to-react-js-project-from-circle-ci/40208 "2021-05-27T16:54:31Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![kryptoz](https://sea2.discourse-cdn.com/circleci/user_avatar/discuss.circleci.com/kryptoz/32/27476_2.png) [@kryptoz](https://discuss.circleci.com/u/kryptoz)\
**Post date:** [May 27, 2021, 4:54pm UTC](https://discuss.circleci.com/t/cant-connect-to-react-js-project-from-circle-ci/40208/1 "2021-05-27T16:54:31Z")

</div>

Trying to run [cypress.io](http://cypress.io) tests on my react application in circle-ci. I’ve used cypress before but never with circle-ci. After seeing localhost fail and googling a bit, I came across [Can't connect to node HTTP server running on localhost - #6 by sdubois](https://discuss.circleci.com/t/cant-connect-to-node-http-server-running-on-localhost/19857/6) So I’ve tried that using wait-on to try to connect to my project which should be running at 192.168.96.3/ according to npm start.

For whatever reason, however, that still doesn’t work with ECONNREFUSED. So finally, I rerun the job with ssh, and ssh into my job. I run npm start, which outputs: `Project is running at 192.168.96.3/`. So I try `curl http://192.168.96.3` and I still get ECONNREFUSED.

Anything that I’m missing. I know my app is running, I know the ip that it should be running on, so why can’t I connect to it?

---

<div class="post-metadata">

**Author:** ![kryptoz](https://sea2.discourse-cdn.com/circleci/user_avatar/discuss.circleci.com/kryptoz/32/27476_2.png) [@kryptoz](https://discuss.circleci.com/u/kryptoz)\
**Post date:** [May 27, 2021, 4:57pm UTC](https://discuss.circleci.com/t/cant-connect-to-react-js-project-from-circle-ci/40208/2 "2021-05-27T16:57:40Z")

</div>

Nevermind, I’m dumb and forgot the port

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/circleci/original/3X/5/1/511608acda8e85906e15909b57bd0a46c1dbe291.png) [@system](https://discuss.circleci.com/u/system)\
**Post date:** [June 7, 2021, 4:23pm UTC](https://discuss.circleci.com/t/cant-connect-to-react-js-project-from-circle-ci/40208/3 "2021-06-07T16:23:41Z")

</div>

Closed on June 7, 2021, 4:23pm UTC

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.
