# Can I run a Postman mock server on a higher environment other than localhost?

**URL:** <https://community.postman.com/t/can-i-run-a-postman-mock-server-on-a-higher-environment-other-than-localhost/16155>\
**Category:** Help Hub\
**Tags:** mockservers\
**Created:** [September 23, 2020, 12:50pm UTC](https://community.postman.com/t/can-i-run-a-postman-mock-server-on-a-higher-environment-other-than-localhost/16155 "2020-09-23T12:50:10Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![payload-cosmologist8](https://avatars.discourse-cdn.com/v4/letter/p/e480ec/32.png) [@payload-cosmologist8](https://community.postman.com/u/payload-cosmologist8)\
**Post date:** [September 23, 2020, 12:50pm UTC](https://community.postman.com/t/can-i-run-a-postman-mock-server-on-a-higher-environment-other-than-localhost/16155/1 "2020-09-23T12:50:10Z")

</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 files in your Git repository, which you can run locally or deploy. Create one in the app, or use the Postman CLI to generate one from an OpenAPI spec, collection or dataset (`postman mock generate`) and run it (`postman mock run`). See [About mocks](https://learning.postman.com/docs/design-apis/mock-apis/mocks/overview) and [Create a mock](https://learning.postman.com/docs/design-apis/mock-apis/mocks/create-a-mock).  
> Working with an AI coding agent? The [Postman plugin](https://github.com/postmanlabs/postman-plugin) can build and run mocks for you.  
> For current help, see the [Postman docs](https://learning.postman.com/docs/), try the free [Postman tools](https://www.postman.com/tools) (no account needed), or join us on [Discord](https://discord.gg/58aNNsRBGR).

We worked on some third party banking APIs, for which we needed to set up a mock server for each of our environments(integration, QA and pre-production). We used [mountebank](http://www.mbtest.org/) - to build the mock web server. It got a bit tedious as the configuration for each of the APIs was based on a lot of inputs selected.

I was wondering if any one has used the postman web server on a higher environment or does it currently support a locally running mock server only?

---

<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:** [April 28, 2025, 3:33pm UTC](https://community.postman.com/t/can-i-run-a-postman-mock-server-on-a-higher-environment-other-than-localhost/16155/2 "2025-04-28T15:33:00Z")

</div>

Closed on April 28, 2025, 3:33pm UTC


