# Error: connect ECONNREFUSED 127.0.0.1:5001on Mac

**URL:** <https://community.postman.com/t/error-connect-econnrefused-127-0-0-1-5001on-mac/53493>\
**Category:** Help Hub\
**Tags:** development\
**Created:** [October 19, 2023, 5:37pm UTC](https://community.postman.com/t/error-connect-econnrefused-127-0-0-1-5001on-mac/53493 "2023-10-19T17:37:33Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![orbital-module-ast16](https://avatars.discourse-cdn.com/v4/letter/o/a6a055/32.png) [@orbital-module-ast16](https://community.postman.com/u/orbital-module-ast16)\
**Post date:** [October 19, 2023, 5:37pm UTC](https://community.postman.com/t/error-connect-econnrefused-127-0-0-1-5001on-mac/53493/1 "2023-10-19T17:37:33Z")

</div>

Hi  
I need to send some packet in JSON over postman to logstash on Mac  
Logstash was already established on localhost:5001- UDP

```auto
[2023-10-19T19:19:07,238][INFO][logstash.agent] Pipelines running {:count=>1, :running_pipelines=>[:pi_customer], :non_running_pipelines=>[]}
[2023-10-19T19:19:07,255][INFO][logstash.inputs.udp][pi_customer][c4dcf849d002517842a72f988bc9a7c0471cd08de6075f97c8aa1defe66ca5b8] UDP listener started {:address=>"0.0.0.0:5001", :receive_buffer_bytes=>"786896", :queue_size=>"2000"}

```

but I I want send “whatever” I got

Error: connect ECONNREFUSED 127.0.0.1:5001

 ![Screenshot 2023-10-19 at 19.36.34](https://us1.discourse-cdn.com/getpostman/original/3X/a/9/a9a3ebdab7ba561cf2b3d8be0b273a08c673bb12.png)

What’s wrong?  
Thx for tips

---

<div class="post-metadata">

**Author:** ![michaelderekjones](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/michaelderekjones/32/14819_2.png) [@michaelderekjones](https://community.postman.com/u/michaelderekjones)\
**Post date:** [October 20, 2023, 11:07am UTC](https://community.postman.com/t/error-connect-econnrefused-127-0-0-1-5001on-mac/53493/2 "2023-10-20T11:07:36Z")

</div>

You appear to be using 0.0.0.0 instead of 127.0.0.1 (local host).

Try that first.

---

<div class="post-metadata">

**Author:** ![system](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/system/32/29796_2.png) [@system](https://community.postman.com/u/system)\
**Post date:** [November 19, 2023, 11:07am UTC](https://community.postman.com/t/error-connect-econnrefused-127-0-0-1-5001on-mac/53493/3 "2023-11-19T11:07:48Z")

</div>

Closed on November 19, 2023, 11:07am UTC

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