Shadowrocket Features and Settings
Use Global Routing to control how traffic is handled and On Demand to control when a connection starts. If something goes wrong, check these settings first, then review your rules or test settings.
- Config
- Match rules in the active configuration
- Proxy
- Route through the selected server
- Direct
- Connect directly to the destination
These steps use the iPhone / iPad interface; screens may differ on other platforms. There are two ways to get Shadowrocket: the iPhone / iPad app costs $2.99 as a one-time App Store purchase; check the App Store listing for system requirements. The Mac (Apple silicon and Intel), Windows, Android, and Linux versions are free, with installers available only from this site at /dl/. See the download page for platform links.
Three Global Routing Modes
On Home, open Global Routing and choose Config, Proxy, or Direct. This setting controls how traffic is handled after Shadowrocket takes it over; it does not turn the connection on or off, or change the server selected under SERVER. After switching modes, retry the same destination with a new request and compare the results.
| Mode | How it works | When to use it |
|---|---|---|
Config | Checks rules in the active configuration, in order. | Everyday routing or checking whether a new rule matches. |
Proxy | Routes traffic through the currently selected server. | Temporarily test the proxy route without rule-based routing. |
Direct | Connects directly to the destination without using a proxy server. | Check whether the current network can reach the same destination directly. |
If a destination works in Proxy but not Config, first make sure the expected configuration is enabled. Then check whether an earlier rule or FINAL is directing it to a different policy. If both Proxy and Direct fail, check the device's network and the destination service before changing any rules. When testing is done, switch back to your original mode so temporary settings don't become your everyday setup.
Rules & Routing: Match Order and Policies
In Config, check which configuration is active, then open its editor to review the rules. Keep a copy before making changes. With Global Routing set to Config, rules are checked from top to bottom, and the first match determines the policy. Put specific exceptions before broader rules. For example, place an exact match for a subdomain before a suffix match for its parent domain if the subdomain needs different routing.
Choose a Match Condition
DOMAINmatches a specific hostname;DOMAIN-SUFFIXmatches a domain and its subdomains;DOMAIN-KEYWORDmatches a string in the hostname. Short strings can match unrelated domains, so prefer an exact match when you know the full hostname.IP-CIDRmatches an IPv4 range, andIP-CIDR6matches an IPv6 range.GEOIPmatches based on geographic data for the destination IP. DNS results can change, so IP-based matching is no substitute for a specific domain exception.USER-AGENTrelies on a visible request identifier and is not a general way to identify any app. If there's no field you can match, use a domain or address condition that you can verify reliably.
Choose an Action for Matching Traffic
PROXY routes traffic through a proxy, DIRECT bypasses the proxy, and REJECT blocks the request. A trailing FINAL sets the action for traffic that matches none of the preceding rules. DIRECT is a policy for an individual rule; Direct on Home is a global mode. To test a direct rule, keep Global Routing set to Config.
DOMAIN,docs.example.com,DIRECT
DOMAIN-SUFFIX,example.com,PROXY
FINAL,DIRECT
Import Subscriptions and Manage Servers
A subscription imports and updates a set of server details. Add a server manually when you already have its complete settings. On Home, tap Add Server. If you have a subscription URL, choose Subscribe, enter the URL you already have, and save. If you have details for a single server, enter the protocol and settings provided, then return to the SERVER list to check the new entry. A successful import only means the entry was added; it doesn't confirm that the server can connect.
Choose a Protocol and Default Server
Settings for protocols such as Shadowsocks, VMess, VLESS, and Trojan are not interchangeable. Check the authentication and transport settings as well as the address and port. Fill in fields such as the domain and transport path only when your existing configuration requires them. Don't disable server certificate verification just to make a test pass, and don't post complete server details in public discussions.
Under SERVER, select the entry you want to use and make sure it becomes the default server. Then turn on the connection. To check whether a server responds, run Connectivity Test first, then try the destination you actually need. After updating a subscription, entries may be renamed or removed, so confirm your selection again. If only one entry fails, check its settings; if several fail, check the device's network and whether the subscription updated successfully.
On Demand Connections
On Demand controls when the system automatically establishes a VPN connection; Global Routing controls how traffic is handled after the connection is established. They serve different purposes: even when auto-connect works, traffic routing still depends on the current mode and configuration.
First, connect manually from Home. Then open On Demand in Settings and configure the network conditions you need using the options shown. To test a specific network condition, set one condition, switch between Wi-Fi and cellular, then return to Home to check the connection status. Next, switch to a network that doesn't meet the condition and confirm the behavior. Avoid changing the server and On Demand conditions at the same time; otherwise, it can be hard to tell whether auto-connect failed or the server is unreachable.
If the connection comes back after you disconnect manually, check whether the current network still meets the On Demand conditions. To pause the connection while troubleshooting, turn off On Demand first, then disconnect from Home and observe what happens. If the network requires sign-in, complete network authentication before turning On Demand back on.
Data Usage
Open Data to view the upload and download traffic recorded by the app. To measure how much data an action uses, note the current readings, perform a short, repeatable action, then return to the same view and compare the difference. If the interface offers reporting periods or grouping, use the same settings both times. Don't compare the increase from a single connection with a total accumulated over several days.
Data readings show traffic recorded by the app. They are not the same as your device's total cellular usage or the figures reported by a carrier or service provider. An increase may also come from background syncing rather than the page you just opened. When troubleshooting, pause tasks that transfer data continuously and note the routing mode and network type. Before resetting statistics, save any readings you need for comparison; clearing local records won't change external usage totals.
DNS, Testing, and Sync
In Settings, review options that affect connectivity and how you use the app. Note the original values before troubleshooting, change one setting at a time, and retest on the same network, server, and destination. If a problem starts immediately after a change, restore that setting first instead of resetting everything at once.
DNS: Check Name Resolution
DNS translates domain names into addresses. First check the DNS settings in Settings, then see whether the active Config also defines DNS parameters; don't assume the two are independent. Change the resolver only if you know the appropriate address and protocol. After making a change, send a new request to the same domain rather than testing with a page that already has an open connection. If the issue only occurs on one Wi-Fi network, compare with another network using the original settings before deciding whether to keep the change.
Test Method: Compare Like with Like
Check Test Method in Settings, then run Connectivity Test from Home. Different methods may measure different stages, so matching units don't necessarily make the results comparable. When comparing servers or checking the effect of a change, use the same test method and destination. A quick response doesn't guarantee a stable connection over time; even after a successful test, verify access to the destination you actually need.
Today Widget: Set Up a Shortcut
Find Today Widget in Settings and choose from the available options. Then check whether your system provides the corresponding entry on its widgets screen. The widget offers a quick way to view or control the app. If it doesn't match what's shown on Home, open the app and check the connection status and selected server rather than relying on the widget alone to confirm that settings took effect.
iCloud: Check What Syncs
Review the iCloud options in Settings and make sure the system allows the app to use the relevant iCloud features. Choose what to sync according to the options shown. When moving to a new device, keep the working configuration on the old device and check the configuration, servers, and default selection on the new one. Syncing is not the same as a full backup. If both devices have changes, decide which copy to keep before editing further to avoid overwriting settings that still work.
Troubleshooting Connection Issues
Diagnostics shows the diagnostic information provided by the app. Find it in Settings, reproduce the issue once, and note when it happened, the network in use, the Global Routing mode, and the selected server. First distinguish between two cases: the connection switch on Home won't stay on, or the connection is established but a destination won't load. For the first, check system VPN permissions and network status. For the second, compare the destination, mode, and matching rule.
If a test under SERVER fails, first confirm that the device has internet access, then check the server settings, Test Method, and system time. If the test succeeds but the destination still fails, compare Config, Proxy, and Direct using the same destination, then restore your original settings. Before sharing diagnostic records, keep only the relevant time range and hide subscription URLs, server credentials, and destinations you don't want to make public.
Haven't made your first connection yet? Follow the Getting Started steps to import, connect, and verify. For interface terms and rule keywords, see the glossary.