Shadowrocket Features and Settings
Choose how traffic is routed with Global Routing, then manage servers, adjust connection conditions, or review diagnostics as needed. Examples use the iPhone / iPad interface.
Global Routing
Choose a routing mode first, then check whether an individual rule is working.
Open Global Routing from Home to switch between Config, Proxy, and Direct. This sets how the client routes traffic it handles; it does not select a protocol. Before switching modes, note the current mode and selected server so you can restore them after testing.
| Mode | How traffic is handled | When to use it |
|---|---|---|
| Config | Uses the policies specified by the rules in the current configuration. | For everyday domain- or address-based routing, or to test a newly added rule. |
| Proxy | Sends traffic handled by the client through the proxy, without applying the configuration's routing rules individually. | To briefly check whether the selected server can forward a request to a specific destination. |
| Direct | Sends traffic handled by the client directly to its destination without routing it through a proxy server. | To check whether the current network can reach the same destination directly. |
Select Config to test rules. Direct does not turn off the connection. To check whether having the client handle traffic affects access, run a separate comparison with the connection turned off.
Keep the network and destination the same wherever possible. If Proxy works but the same request fails under Config, check the active configuration and matched policy first. If both modes fail, check whether the destination service is available too; this test alone cannot establish that the server is at fault.
Rule-Based Routing
Match conditions determine which policy handles each request.
Choose a rule type for the destination
In Config, find the active configuration and open its rule list. Use DOMAIN to match an exact domain. Use DOMAIN-SUFFIX to match a domain and its subdomains. DOMAIN-KEYWORD matches a string anywhere in a domain and can cover more than expected, so check for a more specific option before adding one.
For address-based matching, IP-CIDR and IP-CIDR6 apply to IPv4 and IPv6 ranges, respectively. GEOIP matches an address's geographic location; it does not indicate a website's language or organization. For domain requests, whether an address rule matches also depends on the resolved address. When troubleshooting, distinguish between a domain matching a condition and its resolved address falling within a range.
Set rule order and a fallback
Rules are usually checked from top to bottom, and the first match wins. Put narrow exceptions before broader rules. PROXY routes through a proxy, DIRECT connects directly, and REJECT blocks the matching request. FINAL handles traffic that did not match any earlier rule, so place it at the end.
DOMAIN,help.example.com,DIRECT
DOMAIN-SUFFIX,example.com,PROXY
FINAL,DIRECT
Here, help.example.com is a direct-connection exception that matches first. If you swap the first two lines, the suffix rule will match it first. The example's fallback is direct; that does not mean every configuration should use the same policy. Keep a copy of the original configuration before editing. After saving, return to Home, confirm Global Routing is still set to Config, then test both the exception domain and a regular domain.
Manage Subscriptions and Servers
A subscription maintains a group of entries; check each server's settings individually.
Import an existing subscription with Subscribe
A subscription URL points to a server list that can be refreshed. From Home, open Add Server, select Subscribe, enter the subscription URL provided by your service provider, and save. When the import finishes, return to SERVER to confirm the entries appear, then select the server you want to use. A successful import does not mean you are connected or that every entry in the list is usable.
Refreshing a subscription updates its entries to match the remote list. If things behave differently after a refresh, check whether the previously selected entry is still there, then see whether the protocol or port changed for an entry with the same name. Subscription URLs may contain access credentials; do not post the full URL in a public support request.
Add a single server with Add Server
If you have details for just one server, choose a protocol in Add Server, then enter the server address, port, and required authentication details using the information you have. The fields for Shadowsocks, VMess, VLESS, Trojan, WireGuard, and Hysteria2 are not interchangeable. For TLS or transport settings, follow the details for your server; do not copy values from another entry.
Give the entry a recognizable name in SERVER. When editing, change one setting at a time. After saving, run a preliminary check with Connectivity Test, then verify with an actual destination. A response only confirms a result under those test conditions; it does not mean every app can reach its services through this connection.
On Demand Connections
Connection triggers and traffic policies are separate settings.
On Demand starts a connection when the conditions you set are met. First, connect manually from Home to confirm that the current server and routing mode work. Then open On Demand in Settings, choose the network conditions you need from the available options, and enable it. When setting this up for the first time, change only one type of condition so you can identify what triggered the connection.
To test it, leave Settings and check the connection status in an environment where you can switch networks. Observe what happens when the device enters and leaves the specified network conditions. On Demand determines when to start a connection; once connected, Global Routing determines how requests are handled.
If the connection comes back after you disconnect manually, first check whether the device still meets the trigger conditions. To compare behavior with the connection kept off, pause On Demand first. Record the results, then restore your usual conditions.
Data Usage
Compare upload and download changes over the same time period.
Open Data to view traffic recorded by the client. Before reading the figures, check the reporting period and units, and distinguish uploads from downloads. To see whether an action caused a noticeable change, note the current figures, then repeat an action such as loading the same page. Return to Data and compare the change over the same reporting period.
The client, your system's cellular data counter, and your service provider may use different scopes or reporting periods, so their figures are not directly comparable. Background requests may also occur during testing. To check whether a rule is working, treat traffic changes as a clue and also consider the current mode, matched policy, and connection records for the relevant period.
Common Settings
Change one setting at a time and keep test conditions that reproduce the issue.
DNS: Check Domain Resolution
DNS resolves domain names to addresses. Check DNS-related options in Settings, then see whether the active Config defines any custom resolution options. Before changing anything, note the original value and where it is set; do not change two places at once. Save, reconnect, and retest the domain that previously failed. Internal domains on company or campus networks may rely on that network's own DNS settings. Resolving public domains does not prove that internal domains will resolve.
Test Method: Keep Connectivity Tests Consistent
Test Method selects how Connectivity Test runs. Choose a method in Settings, then return to Home to run the test. When comparing entries, use the same method and network. Check whether you switched between Wi-Fi and cellular before comparing results. Response time is not the same as download speed, and a timeout may be specific to the test destination.
Today Widget: Check the System Widget
Today Widget is a setting related to the system widget entry point. Check the options under Today Widget in Settings, then see whether your system offers the corresponding entry in its widget editor. If the entry is missing or its status has not refreshed, open Shadowrocket and check the actual connection status on Home. Do not judge whether rules are working solely by what the widget displays.
iCloud: Check What Syncs
Check the iCloud sync options in Settings, and confirm in system settings that the device is using the intended Apple Account. Before enabling sync, confirm whether you want to sync configurations, server entries, or other items listed in the interface. To verify on another device, first check which entries actually appeared, then see which configuration is active. Syncing an item to a device does not mean its configuration is enabled automatically. If both devices have changes, keep the configuration that still works before resolving differences.
Diagnostics: Capture a Reproducible Failure
Open Diagnostics from Settings and review information for the time the failure occurred. Note the current network, Global Routing mode, and time of failure, then reproduce the request once. If the record shows a resolution failure first, check DNS. If the address resolved but the connection timed out, check the server details and whether the destination is reachable. Before sharing diagnostics, remove full subscription URLs, authentication fields, internal domains, and any other information that should not be public.
For checks based on specific symptoms, see the Troubleshooting Guide. If you have not completed your first connection yet, follow the Quick Start Guide to import and verify your setup.