How to Configure a Proxy on iPhone and iPad (iOS 18)

How to Configure a Proxy on iPhone and iPad (iOS 18)

Setting up a proxy on your iPhone or iPad allows you to route your mobile internet traffic through an intermediary server, changing your visible IP address. This is useful for accessing geo-restricted content, testing mobile applications from different locations, or adding an extra layer of privacy when browsing on public Wi-Fi networks.

iOS has built-in proxy support that works at the Wi-Fi connection level. This guide covers how to configure HTTP and SOCKS proxies on iPhones and iPads running iOS 18, iOS 17, and earlier versions.

When You Need a Proxy on iPhone or iPad

There are several practical scenarios where configuring a proxy on iOS is valuable:

  • Mobile app testing — Developers can route traffic through proxies to test how their apps behave from different regions
  • Accessing geo-restricted content — Route traffic through a proxy server in a specific country
  • Network debugging — Capture and inspect network traffic using a proxy like Charles or mitmproxy
  • Privacy on public Wi-Fi — Encrypt traffic through a secure proxy when using coffee shop or airport networks
  • Managing social media accounts — Assign different IPs to different accounts

To understand how proxies work at a fundamental level, read our guide on what a mobile proxy is.

Method 1: Configure an HTTP Proxy on iPhone (Wi-Fi)

iOS allows you to set a proxy for each Wi-Fi network individually. The proxy setting is tied to the specific Wi-Fi connection, so it will not affect cellular data traffic.

Step 1: Open Wi-Fi Settings

  1. Open the Settings app on your iPhone or iPad.
  2. Tap Wi-Fi.
  3. Tap the info icon (ⓘ) next to the Wi-Fi network you are currently connected to.

Step 2: Scroll to HTTP Proxy

  1. Scroll down to the bottom of the network details page.
  2. Tap Configure Proxy. By default, this is set to Off.

Step 3: Select Manual Configuration

  1. Tap Manual.
  2. Fill in the following fields:
  • Server: Enter the proxy server address (e.g., proxy.example.com)
  • Port: Enter the port number (e.g., 8080)
  • Authentication: Toggle this on if your proxy requires a username and password
  • Username: Enter your proxy username
  • Password: Enter your proxy password

Step 4: Save Settings

  1. Tap Save in the top-right corner.
  2. The proxy is now active for this Wi-Fi network.

Step 5: Verify the Proxy

Open Safari and navigate to whatismyipaddress.com. The IP address shown should match your proxy server’s IP.

Method 2: Use Automatic Proxy Configuration (PAC)

If your proxy provider offers a PAC (Proxy Auto-Configuration) file, iOS can use it to automatically determine when to use the proxy.

Step 1: Access Proxy Settings

  1. Go to Settings > Wi-Fi.
  2. Tap the info icon next to your connected network.
  3. Scroll down and tap Configure Proxy.

Step 2: Select Automatic

  1. Tap Automatic.
  2. In the URL field, enter the URL of your PAC file (e.g., http://proxy-provider.com/config.pac).
  3. Tap Save.

The PAC file defines rules for which traffic goes through the proxy and which traffic connects directly, giving you more flexibility than manual configuration.

Method 3: Configure Proxy for Cellular Data

iOS does not provide a built-in way to configure a proxy for cellular data connections through the Settings app. However, there are workarounds:

Option A: Use an APN Configuration Profile

You can set a proxy at the APN (Access Point Name) level using a configuration profile:

  1. Open Safari and go to a configuration profile generator (such as Apple Configurator on a Mac).
  2. Create a profile with the Cellular payload.
  3. Set the proxy server and port in the APN settings.
  4. Install the profile on your iPhone via Safari or email.

Option B: Use a Proxy App

Several apps on the App Store act as local VPN/proxy clients that can route cellular traffic through your proxy server:

  • Shadowrocket — Supports HTTP, HTTPS, SOCKS5 proxies
  • Potatso — Open-source proxy client for iOS
  • Surge — Advanced network toolbox with proxy support

These apps create a local VPN tunnel that routes all traffic (including cellular) through your configured proxy.

Option C: Use a Mobile Proxy Directly

The most seamless solution for cellular proxy usage is to use a mobile proxy service that provides residential mobile IPs. This approach does not require device-level configuration because the proxy is applied at the network level.

Configuring Proxy for Specific iOS Apps

Safari

Safari automatically uses the system proxy settings configured in Wi-Fi settings. No additional configuration is needed.

Chrome for iOS

Chrome on iOS also uses the system proxy settings. Any proxy configured in your Wi-Fi settings will apply to Chrome automatically.

Other Apps

Most apps that use Apple’s standard networking frameworks (NSURLSession) will respect the system proxy settings. However, some apps (especially those using custom networking libraries) may ignore system proxy settings.

How to Set Up a Debugging Proxy (Charles/mitmproxy)

Developers frequently use debugging proxies to inspect network traffic from iOS apps. Here is how to set it up:

Step 1: Start the Proxy on Your Computer

Install and run Charles Proxy or mitmproxy on your Mac or PC. Note the local IP address and port (typically 8888 for Charles).

Step 2: Configure iPhone Proxy

  1. Ensure your iPhone and computer are on the same Wi-Fi network.
  2. Go to Settings > Wi-Fi > (your network) > Configure Proxy > Manual.
  3. Enter your computer’s local IP as the Server and the proxy port as the Port.
  4. Tap Save.

Step 3: Install the SSL Certificate

To inspect HTTPS traffic, you need to install the proxy’s SSL certificate:

  1. Open Safari on your iPhone.
  2. Navigate to the certificate download URL:
  • Charles: chls.pro/ssl
  • mitmproxy: mitm.it
  1. Download and install the certificate profile.
  2. Go to Settings > General > About > Certificate Trust Settings.
  3. Enable full trust for the installed certificate.

Step 4: Verify

Traffic from your iPhone should now appear in the proxy tool on your computer.

Troubleshooting iOS Proxy Issues

Proxy Not Working

  1. Check the Wi-Fi connection — The proxy setting is tied to a specific Wi-Fi network. Make sure you are connected to the correct network.
  2. Verify server and port — Double-check the proxy address and port number.
  3. Authentication — Ensure the username and password are correct if authentication is enabled.
  4. Try a different proxy type — If HTTP proxy is not working, try the Automatic (PAC) option.

Cannot Access Any Websites

If you configured a proxy but cannot load any pages:

  1. The proxy server may be down or unreachable. Test it from another device first.
  2. The proxy may not support the ports used by your web traffic.
  3. Go back to Settings > Wi-Fi > Configure Proxy and set it to Off to restore normal connectivity.

Proxy Works on Wi-Fi but Not on Cellular

This is expected behavior. iOS Wi-Fi proxy settings do not affect cellular connections. Use a proxy app (Method 3, Option B) to proxy cellular traffic.

Slow Internet Through Proxy

  • Check if the proxy server is geographically close to you for lower latency.
  • Free proxies are often overloaded. Consider a premium proxy service for reliable speeds.
  • Test the connection without the proxy to confirm the issue is proxy-related.

Security Considerations

  • Avoid free proxies on iOS — They may log your browsing data or inject ads.
  • Use HTTPS-capable proxies to ensure your traffic is encrypted between your device and the proxy.
  • Remove proxy certificates from your device when you are done debugging, especially for Charles or mitmproxy certificates that allow HTTPS interception.
  • Disable the proxy when you are finished using it to prevent traffic from failing if the proxy goes offline.

For more on proxy-related terminology, our proxy glossary covers all the key concepts.

Conclusion

Configuring a proxy on iPhone and iPad is straightforward for Wi-Fi connections through the built-in Settings app. For cellular data, you will need a third-party app or configuration profile. Developers can leverage debugging proxies like Charles to inspect app traffic. Regardless of your use case, always verify the proxy is working by checking your visible IP address and disable it when it is no longer needed.


Related Reading

Scroll to Top