Home Arrow Icon Knowledge base Arrow Icon Global Arrow Icon Iphone postman proxy
    iphone proxy


Iphone postman proxy


To use Postman as a proxy to capture and inspect API calls from an iPhone, follow these steps:

Setting Up Postman Proxy

1. Open Proxy Settings in Postman:
- Launch Postman and navigate to the Proxy settings. Note the default port, usually `5555`.

2. Find Your Computer's IP Address:
- On macOS, go to System Preferences > Network to find your computer's IP address (e.g., `192.168.0.101`).

3. Configure HTTP Proxy on Your iPhone:
- On your iPhone, go to Settings > Wi-Fi and select the network you are connected to. Choose Configure Proxy and set it to Manual.
- Enter your computer's IP address as the Proxy and the port number you noted from Postman (e.g., `5555`).

Capturing HTTPS Traffic

To capture HTTPS traffic, you need to install the Postman security certificate on your iPhone:

1. Download the Certificate:
- Locate the `postman-proxy-ca.crt` certificate file on your computer. It can typically be found in:
- macOS: `~/Library/Application Support/Postman/proxy`
- Windows: `C:\Users\\AppData\Roaming\Postman\proxy`

2. Transfer the Certificate to Your iPhone:
- Use AirDrop or email to send the `postman-proxy-ca.crt` file to your iPhone.

3. Install the Certificate:
- On your iPhone, go to Settings > Profile Downloaded and tap Install. Follow the prompts to complete the installation.
- After installation, go to Settings > General > About > Certificate Trust Settings and enable full trust for the Postman certificate.

Testing the Setup

Once the proxy is configured and the certificate is installed, open any app or browser on your iPhone. You should see the network calls in the Postman app's history sidebar. This setup allows you to debug API requests effectively from your mobile device[1][2][5].

Troubleshooting

If you encounter issues, such as losing Wi-Fi connectivity when setting the proxy, ensure that:

- Your iPhone and computer are connected to the same Wi-Fi network.
- The correct IP address and port are entered in the proxy settings.
- The Postman app is running and the proxy is active.

For more detailed troubleshooting, refer to community forums or Postman's official documentation[3][4].

Citations:
[1] https://blog.postman.com/using-postman-proxy-to-capture-and-inspect-api-calls-from-ios-or-android-devices/
[2] https://learning.postman.com/docs/sending-requests/capturing-request-data/capturing-https-traffic/
[3] https://stackoverflow.com/questions/74037535/unable-to-setup-connection-between-iphone-proxy-and-postman-proxy-debug
[4] https://github.com/postmanlabs/postman-app-support/issues/8541
[5] https://blog.postman.com/debug-api-requests-mobile-postman-proxy/