# Testing my API, curl works but postman shows EHOSTUNREACH error

**URL:** <https://community.postman.com/t/testing-my-api-curl-works-but-postman-shows-ehostunreach-error/72924>\
**Category:** Help Hub\
**Tags:** tests, ip, local\
**Created:** [December 19, 2024, 5:41pm UTC](https://community.postman.com/t/testing-my-api-curl-works-but-postman-shows-ehostunreach-error/72924 "2024-12-19T17:41:30Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![orbital-module-cosm5](https://avatars.discourse-cdn.com/v4/letter/o/87869e/32.png) [@orbital-module-cosm5](https://community.postman.com/u/orbital-module-cosm5)\
**Post date:** [December 19, 2024, 5:41pm UTC](https://community.postman.com/t/testing-my-api-curl-works-but-postman-shows-ehostunreach-error/72924/1 "2024-12-19T17:41:30Z")

</div>

Hi, this is driving me nuts, I put my api in a linux server inside my local network, a simple curl get request works (curl -H ‘user-id:1’ [http://192.168.100.205:8099/api/v1/payments](http://192.168.100.205:8099/api/v1/payments)), but the same get request in postman gives me following error: `Error: connect EHOSTUNREACH 192.168.192.110:8099 - Local (192.168.192.241:49596)`, ping works, ip is reachable, request by browser works, my postman version is 11.23.3 on Mac.

 ![image](https://us1.discourse-cdn.com/getpostman/original/3X/e/a/ea837120103517b46f246411dcdce1564f1052be.png)

---

<div class="post-metadata">

**Author:** ![danny-dainton](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/danny-dainton/32/29401_2.png) [@danny-dainton](https://community.postman.com/u/danny-dainton)\
**Post date:** [December 19, 2024, 9:19pm UTC](https://community.postman.com/t/testing-my-api-curl-works-but-postman-shows-ehostunreach-error/72924/2 "2024-12-19T21:19:21Z")

</div>

Hey @orbital-module-cosm5 👋

Welcome to the Postman Community! :postman:

What does that full request look like in Postman, the cURL request looks like it has a header but I can’t see that in the console log.

Are you trying this on the Desktop Client or the Web Platform?

---

<div class="post-metadata">

**Author:** ![orbital-module-cosm5](https://avatars.discourse-cdn.com/v4/letter/o/87869e/32.png) [@orbital-module-cosm5](https://community.postman.com/u/orbital-module-cosm5)\
**Post date:** [December 26, 2024, 3:27pm UTC](https://community.postman.com/t/testing-my-api-curl-works-but-postman-shows-ehostunreach-error/72924/3 "2024-12-26T15:27:24Z")

</div>

Hi Danny, thanks for answering, problem was solved, it was a permission in my Mac in settings, privacy & security, network access to Postman, it is not firewall, is a new section in Mac OS sequoia, never happened to me before.
