macOS

Mock Easy

A local mock server and reverse proxy for API developers.

Download Mock Easy on the Mac App Store

Mock Easy support

Common questions first. If your answer is not here, write to us — a real person reads it.

Get in touch: e-mail inceptionapplication@gmail.com or use the contact page and choose Mock Easy as the app. Tell us your Mock Easy and macOS versions and what kind of client you are connecting (simulator, emulator, phone or a tool on your Mac).

Requirements

Connecting your app

What base URL do I give my app?

Each route listens on its own port on your Mac. Replace your backend's base URL in the client with Mock Easy's address and that route's port:

  • Apps and tools on the Mac, and the iOS Simulator: localhost (or 127.0.0.1).
  • The Android emulator: 10.0.2.2, which is how the emulator reaches the Mac it runs on. localhost inside the emulator is the emulator itself.
  • A real phone or another computer: your Mac's IP address on the local network, with both devices on the same network.

The app's header shows the local and emulator addresses, with a button to copy each one.

My phone cannot reach Mock Easy

Check that the phone and the Mac are on the same network, that you used the Mac's IP address rather than localhost, and that the route is switched on. If the macOS firewall is on, allow incoming connections for Mock Easy when asked, or under System Settings → Network → Firewall. Some guest and office networks block devices from talking to each other; a phone hotspot or home network usually works.

A route does not answer on its port

Check that the route is switched on. If another program on your Mac already listens on that port, Mock Easy cannot use it: choose a different port for the route, or quit the other program. Ports start and stop live when you add a route or change its port; no restart is needed.

HTTPS and the certificate

My client refuses the connection or says the certificate is not trusted

Mock Easy serves route ports over HTTPS with a self-signed certificate it creates on your Mac. A client has to trust that certificate once:

  1. Click the Cert button in the app's header and choose Download cert. Save mockserver.crt where you can find it.
  2. Add it to the trust store of the client that calls Mock Easy: the iOS Simulator or device, the Android emulator or device, or your Mac's keychain for tools on the Mac.

Android apps usually also need a network security configuration that trusts user-installed certificates in debug builds.

Can I use plain HTTP instead?

Yes. In the same Cert dialog choose Switch to HTTP, then restart Mock Easy when the app asks. Many platforms block plain HTTP by default: on Android allow cleartext traffic for 10.0.2.2 in your debug build, and on iOS add an App Transport Security exception for local testing.

Mocking, recording and intercepting

How does Mock Easy decide between a mock and the real server?

For each request it first looks for an enabled endpoint with the same method and path. If there is one, it returns that endpoint's active response. If there is none and the route's proxy is on, it forwards the request to the route's Real API URL and passes the answer back. Otherwise it answers with 404. Every request appears in the live log, so you can see which path took it.

Where do recorded calls go?

While Recording is on, each call a route receives is saved under that route. A call to a path that has no endpoint yet becomes a new endpoint in a recording group. A call to an endpoint you already have is added to it as an extra response, and your active mock stays active until you choose otherwise. To record what your real backend returns, switch the route's proxy on and give it a Real API URL.

A request is stuck and never completes

Intercept is probably on. An intercepted call waits until you send it on from the app. Continue it, or switch Intercept off. Intercept is always off when Mock Easy starts, so a forgotten switch cannot hold your requests after a restart.

The app window

I closed the window. Is Mock Easy still running?

Yes. Closing the window hides it so your mocks keep answering clients. Bring it back by clicking the Dock icon or choosing Window → Mock Easy (Cmd+0). To stop every route and quit completely, choose Mock Easy → Quit Mock Easy (Cmd+Q).

Data, plans and subscription

What is included in the free plan?

One route with up to 10 endpoints you add yourself (recorded endpoints do not count), the proxy, HTTPS, the live log and Export, plus 3 recording sessions and 3 intercept sessions each calendar month. Mock Easy Pro removes the limits and adds Import.

I bought Mock Easy 1.0. Do I need to subscribe?

No. Every Pro feature stays unlocked for you at no extra cost. The app checks your original purchase with the App Store. If Pro features look locked, open the upgrade screen and choose Restore Purchases, signed in with the Apple Account you bought it with.

How do I cancel Mock Easy Pro?

In your App Store account, not in the app: open the App Store on your Mac, click your name, then Account Settings → Subscriptions → Manage. The app's Manage Subscription button takes you to the same place. Deleting the app does not cancel a subscription. Refunds are handled by Apple.

How do I move my setup to another Mac?

Use Export to save your whole configuration as a JSON file, copy it to the other Mac, and import it there. Import is part of Mock Easy Pro. The file can contain upstream URLs and saved response bodies, so keep it somewhere you trust.

How do I delete my data?

There is no account to delete, and we hold nothing on a server. Full instructions are on the data deletion page.

Still stuck?

Write to inceptionapplication@gmail.com or use the contact page. Please include your Mock Easy and macOS versions, the client you are connecting, and what you were doing when the problem happened — it makes a real difference to how quickly it gets fixed.

↑ Top