> For the complete documentation index, see [llms.txt](https://docs.ipdunar.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.ipdunar.com/integrations/mobile/shadowrocket.md).

# Shadowrocket

Shadowrocket (iOS) routes **all** device traffic — including cellular and apps with their own network stack — through a configured proxy. It's the most flexible iOS proxy client.

## Add a proxy

1. Open Shadowrocket → **+** in the top right.
2. Type: **HTTPS** (for our HTTP CONNECT proxy on TLS-aware port) or **HTTP** for plain.
3. Fill in:

### Residential / Mobile (gateway)

| Field    | Value                                    |
| -------- | ---------------------------------------- |
| Type     | HTTP                                     |
| Host     | `gate.ipdunar.com`                       |
| Port     | `7777`                                   |
| User     | `ipdunar_s1a2b3c4d5e-type-res-region-us` |
| Password | sub-user password                        |

### ISP

| Field    | Value                 |
| -------- | --------------------- |
| Type     | HTTP                  |
| Host     | `198.51.100.42`       |
| Port     | `8000`                |
| User     | `ipdunar_s1a2b3c4d5e` |
| Password | sub-user password     |

4. **Save** → tap the proxy entry to test (Shadowrocket reports latency and exit IP).
5. Toggle the main "Not Connected" switch to start routing.

\[screenshot: Shadowrocket proxy add form]

## SOCKS5

Type: **Socks5**. Same host/port/credentials as above. Shadowrocket handles the SOCKS5 auth handshake correctly and proxies DNS.

## Rules — proxy only specific apps or domains

Shadowrocket's **Rules** tab lets you direct only certain traffic through ipdunar, leaving the rest direct.

Example: route only `example.com` traffic via proxy, everything else direct:

```
DOMAIN-SUFFIX,example.com,ipdunar-residential
FINAL,DIRECT
```

Where `ipdunar-residential` is the name of the proxy you added.

## Verify

After connecting, open Safari → `https://ipv4.icanhazip.com`. Expect a ipdunar IP.

## Common pitfalls

* **VPN profile permission required** — first launch asks you to install a VPN profile. Approve it; Shadowrocket uses iOS Network Extension to capture traffic.
* **Battery drain** — system-level traffic routing is more battery-intensive than a Wi-Fi proxy. Disable when not in use.
* **Some apps detect VPN-style routing** — banking and some streaming apps refuse to run with any Network Extension active. Use the per-app routing rules to exempt them.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.ipdunar.com/integrations/mobile/shadowrocket.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
