# Issue while running streamlit local server

**URL:** <https://discuss.streamlit.io/t/issue-while-running-streamlit-local-server/121001>\
**Category:** Using Streamlit\
**Tags:** streamlit, discussion\
**Created:** [March 10, 2026, 6:18am UTC](https://discuss.streamlit.io/t/issue-while-running-streamlit-local-server/121001 "2026-03-10T06:18:15Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Harsh30](https://sea2.discourse-cdn.com/streamlit/user_avatar/discuss.streamlit.io/harsh30/32/72578_2.png) [@Harsh30](https://discuss.streamlit.io/u/Harsh30)\
**Post date:** [March 10, 2026, 6:18am UTC](https://discuss.streamlit.io/t/issue-while-running-streamlit-local-server/121001/1 "2026-03-10T06:18:15Z")

</div>

Error: while running local server for streamlit. page is not loading

AggregateError [ECONNREFUSED]:  
at internalConnectMultiple (node:net:1142:49)  
at afterConnectMultiple (node:net:1723:7)  
7:52:05 pm [vite] http proxy error: /\_stcore/host-config  
AggregateError [ECONNREFUSED]:  
at internalConnectMultiple (node:net:1142:49)  
at afterConnectMultiple (node:net:1723:7)  
7:52:06 pm [vite] http proxy error: /\_stcore/health  
AggregateError [ECONNREFUSED]:  
at internalConnectMultiple (node:net:1142:49)  
at afterConnectMultiple (node:net:1723:7)  
7:52:06 pm [vite] http proxy error: /\_stcore/host-config  
AggregateError [ECONNREFUSED]:  
at internalConnectMultiple (node:net:1142:49)  
at afterConnectMultiple (node:net:1723:7)  
7:52:07 pm [vite] http proxy error: /\_stcore/host-config  
AggregateError [ECONNREFUSED]:  
at internalConnectMultiple (node:net:1142:49)

---

<div class="post-metadata">

**Author:** ![AgentStreamy](https://sea2.discourse-cdn.com/streamlit/user_avatar/discuss.streamlit.io/agentstreamy/32/75102_2.png) [@AgentStreamy](https://discuss.streamlit.io/u/AgentStreamy)\
**Post date:** [March 10, 2026, 6:18am UTC](https://discuss.streamlit.io/t/issue-while-running-streamlit-local-server/121001/2 "2026-03-10T06:18:34Z")

</div>

Hey, thanks for sharing your error and welcome to the Streamlit community! 🚀 The error `ECONNREFUSED` with `/stcore/host-config` and `/stcore/health` usually means the Streamlit backend server isn’t running or isn’t reachable at the expected port. This often happens if Streamlit failed to start, is running on a different port, or something else is using the port.

To fix:

1. Make sure Streamlit is running (`ps -Al | grep streamlit` on Linux/Mac) and check the terminal for errors.
2. Confirm you’re not using port 3000, as it’s reserved for internal development and will cause this issue—try port 8501 or 80 instead.
3. If you changed the port, update your frontend/proxy config to match.
4. Temporarily disable CORS and XSRF protection to rule out config issues:

```bash
streamlit run your_app.py --server.enableCORS=false --server.enableXsrfProtection=false

```

5. If using a proxy (like Vite or Nginx), ensure it’s forwarding requests to the correct Streamlit port.

For more details, see [Streamlit’s troubleshooting guide](https://docs.streamlit.io/knowledge-base/deploy/remote-start#content-container) and [port 3000 issue](https://discuss.streamlit.io/t/stcore-health-doesnt-change-port-when-running-on-different-port/43821). If you’re still stuck, please share your `streamlit run` command, config, and any relevant code or repo link so the community can help debug! 🐞

Sources:

- [Streamlit troubleshooting: app never loads](https://docs.streamlit.io/knowledge-base/deploy/remote-start#content-container)
- [Port 3000 reserved issue](https://discuss.streamlit.io/t/stcore-health-doesnt-change-port-when-running-on-different-port/43821)

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/streamlit/original/3X/c/f/cf4c2ee0d938358f82448c5fe4b9c3c91d7ce19c.svg) [@system](https://discuss.streamlit.io/u/system)\
**Post date:** [September 6, 2026, 6:19am UTC](https://discuss.streamlit.io/t/issue-while-running-streamlit-local-server/121001/3 "2026-09-06T06:19:16Z")

</div>

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