# Can't connect to local server

**URL:** <https://community.postman.com/t/cant-connect-to-local-server/32989>\
**Category:** Help Hub\
**Created:** [February 26, 2022, 5:12pm UTC](https://community.postman.com/t/cant-connect-to-local-server/32989 "2022-02-26T17:12:46Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![stylesp23](https://avatars.discourse-cdn.com/v4/letter/s/e99b99/32.png) [@stylesp23](https://community.postman.com/u/stylesp23)\
**Post date:** [February 26, 2022, 5:12pm UTC](https://community.postman.com/t/cant-connect-to-local-server/32989/1 "2022-02-26T17:12:46Z")

</div>

**Your question may already have an answer on the community forum. Please search for related topics, and then read through the [guidelines](https://community.postman.com/t/about-the-just-getting-started-category/37) before creating a new topic.**

> Here’s an outline with best practices for making your inquiry.

_My question_: I can’t connect to local host. What am I doing wrong?

_Details (like screenshots)_:  
GET [http://localhost/5000](http://localhost/5000)

Error: connect ECONNREFUSED 127.0.0.1:80

- ▶Network

▶Request Headers

User-Agent: PostmanRuntime/7.29.0

Accept: _/_

Cache-Control: no-cache

Postman-Token: c775fabc-78b4-43db-8000-7943a5a530be

Host: localhost

Accept-Encoding: gzip, deflate, br

Connection: keep-alive

---

<div class="post-metadata">

**Author:** ![w4dd325](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/w4dd325/32/12436_2.png) [@w4dd325](https://community.postman.com/u/w4dd325)\
**Post date:** [February 26, 2022, 9:18pm UTC](https://community.postman.com/t/cant-connect-to-local-server/32989/2 "2022-02-26T21:18:29Z")

</div>

Hi @stylesp23

Is 5000 your port number? … If it is I believe that the / should be a :  
example; [http://localhost:5000/](http://localhost:5000/)  
(your error looks like your call is defaulting to port 80)
