# \#local

**URL:** https://community.postman.com/tag/local/737.md

[Latest](https://community.postman.com/latest.md) · [Categories](https://community.postman.com/categories.md) · [Tags](https://community.postman.com/tags.md)

---

## [The pm.environment.name method is returning undefined](https://community.postman.com/t/the-pm-environment-name-method-is-returning-undefined/89639)

<div class="topic-metadata">

**Author:** [@dcpanda18usa](https://community.postman.com/u/dcpanda18usa)\
**Replies:** 6\
**Last updated:** [April 8, 2026, 4:52am UTC](https://community.postman.com/t/the-pm-environment-name-method-is-returning-undefined/89639 "2026-04-08T04:52:22Z")

</div>

I have postman collections with environment and have scripts which are checking the postman environment name to do some manipulation. From the past release the “pm.environment.name” is coming up as undefined though I ca…

---

## [Running mock server on localhost](https://community.postman.com/t/running-mock-server-on-localhost/12017)

<div class="topic-metadata">

**Author:** [@mdemers](https://community.postman.com/u/mdemers)\
**Replies:** 5\
**Last updated:** [March 3, 2026, 11:23am UTC](https://community.postman.com/t/running-mock-server-on-localhost/12017 "2026-03-03T11:23:44Z")

</div>

Archived topic — some details may be out of date. Mock servers built from saved collection examples are still supported. Postman now also has code-based mocks: JavaScript request handlers plus a config.yaml, stored as …

---

## [Testing my API, curl works but postman shows EHOSTUNREACH error](https://community.postman.com/t/testing-my-api-curl-works-but-postman-shows-ehostunreach-error/72924)

<div class="topic-metadata">

**Author:** [@orbital-module-cosm5](https://community.postman.com/u/orbital-module-cosm5)\
**Replies:** 2\
**Last updated:** [December 26, 2024, 3:27pm UTC](https://community.postman.com/t/testing-my-api-curl-works-but-postman-shows-ehostunreach-error/72924 "2024-12-26T15:27:24Z")

</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), but the same get request in postman …
