Official Guide / Features & Settings
Shadowrocket Features & Common Settings
First confirm that the connection works, then decide how to handle traffic. Global Routing determines the overall handling mode, while rules in Config determine the route for individual requests. Subscription management, On Demand, and diagnostic tools handle maintenance, connection triggers, and checks, respectively. These features work together but are not interchangeable.
The screen names on this page follow iPhone and iPad. Mac, Windows, Android and Linux editions are free on the download page, and a label may sit in a slightly different place. Follow the English label in the app. iOS and iPadOS require 13.0 or later; purchase compatibility is as shown on the App Store listing.
Global Routing: Config, Proxy, and Direct
Global Routing, usually found on Home, is where you choose the overall routing mode. Config, Proxy, and Direct correspond to Config / Proxy / Direct. Config here means routing traffic according to your configuration; the Config tab at the bottom is for managing configuration files. The labels are the same, but their roles differ. Note your current selection before switching modes so you can restore it after troubleshooting.
Before changing routing modes for the first time, confirm that your server details are correct and that the selected server connects successfully. A VPN indicator means a network connection has been established; it does not confirm that a particular site matched the expected rule or that the remote server can handle every request.
| Mode and interface label | How it works | When to use it | What to check |
|---|---|---|---|
Config Config |
Handles requests according to the rules and policies in the active configuration. | For everyday use when you need to route traffic by domain, address, or other criteria. | Confirm that the configuration is enabled, rules are ordered correctly, and policies have available targets. |
Proxy Proxy |
Routes traffic through the currently selected proxy target. | To check temporarily whether an issue is caused by a traffic rule or policy selection. | Confirm that the selected server is available, and check how local services behave. |
Direct Direct |
Connects directly over the current network, without forwarding traffic through a proxy server. | To check basic network connectivity or compare it temporarily with the proxy route. | Direct access is still affected by the current network and DNS settings. |
Switch modes to investigate symptoms, not as a permanent fix
If Proxy works but Config does not, first check that the configuration is active, which rule matched the request, and which target the corresponding policy selected. If both modes fail, check the server details, current network, and DNS. Direct can help show how direct access behaves, but it does not by itself prove that a remote server is faulty: the two routes may use different resolution and forwarding conditions.
Change one setting at a time, then retest the same destination and note the result. When troubleshooting is complete, restore the mode you intended to use so a temporary switch does not change how later traffic is handled. For the full first-connection walkthrough, see the Getting Started Guide.
Traffic Rules: Match Conditions and Policies
Rules answer “What conditions does this request match?” Policies answer “How should a matching request be handled?” Select and enable a configuration file on the Config page, then set Global Routing to Config for its rules to take effect in that mode. Before editing, keep a copy of the original configuration. When checking rules, inspect the file that is actually active, not just one listed in the app.
Start with domain and IP address rules
DOMAIN matches a specific domain, DOMAIN-SUFFIX matches a domain suffix and its subdomains, and DOMAIN-KEYWORD matches a keyword in the domain. To limit the scope, prefer more specific conditions. An overly broad keyword can match unrelated requests.
IP-CIDR and IP-CIDR6 match IPv4 and IPv6 ranges, respectively; GEOIP matches using geographic data associated with an IP address. IP-based matching depends on domain resolution, so a domain rule matching while an IP rule does not is not necessarily a syntax error. Check the resolved address, then verify the IP range and rule order.
Check rule order and policy targets together
Rules are generally evaluated from top to bottom. Put specific conditions before broader ones, and use FINAL at the end to handle unmatched requests. DIRECT means direct access; REJECT means deny the request. PROXY must correspond to an available proxy policy or target in the active configuration. A correctly named policy does not guarantee that it has a working server selected.
[Rule]
DOMAIN-SUFFIX,example.com,PROXY
IP-CIDR,192.168.0.0/16,DIRECT
FINAL,DIRECT
After making a change, revisit the destination and check the connection log to confirm which rule matched and which route was used. A single page load may involve several domains; the main page loading successfully does not mean images, sign-in, or other resources used the same policy. Troubleshoot the specific failed request rather than judging the entire configuration by whether the homepage opens.
Subscribe & Add Server: Manage Existing Connection Details
The server list stores connection targets; subscriptions let you import and update a group of server details. These are separate from Config files: a server in the list does not mean traffic rules are set up, and importing rules does not guarantee that their referenced servers are available. Before making changes, identify whether you need to update connection details or routing configuration.
Subscribe: Import and Update an Existing Subscription
On Home, open the add menu, choose Subscribe for the link type you have, and enter the subscription URL provided by your service provider. Save it, then update and confirm that the returned server list looks as expected. Keep the URL and all its parameters intact. Do not mistake a webpage URL for a subscription URL, or include spaces or line breaks when copying it.
If an update fails, first distinguish an incorrect URL, a timeout, expired authentication, or an unrecognized response. Repeatedly tapping Update will not fix an incorrect URL. Before updating, note the servers and groups currently in use; afterward, confirm your selection is still valid. Do not assume similarly named entries have the same settings.
Add Server: Enter Protocol Details
To add a server manually, open Add Server, choose the protocol, then enter the address, port, and authentication details you already have. Shadowsocks, VMess, VLESS, Trojan, WireGuard, and Hysteria2 require different fields; do not use one protocol’s settings for another just because both ask for an address. Match TLS, transport, server name, and other parameters to the information provided.
If you have a QR code, import it with Scan QR Code. Before importing from the clipboard, confirm that you copied the complete share content. QR codes, share links, and subscription URLs may contain authentication details; hide sensitive fields before viewing or asking for help. A successful import only means the content was readable—test the connection and actual access as well.
Organize, Delete, and Back Up
Use clear names to distinguish manually added entries from subscription entries, and check whether any policies in your configuration still refer to an entry before deleting it. Subscription updates may recreate some entries, so do not rely on temporary edits to subscription entries to keep settings long term. Before making extensive changes, preserve a recoverable configuration and any necessary notes.
Latency tests show connectivity and response time under specific test conditions; a lower value does not mean every task will be faster. After selecting a server, test the destinations you actually use. For help organizing multiple subscriptions, managing updates, and backing up, see the Subscription & Server Management Guide.
On Demand: Trigger Connections by Condition
On Demand triggers connections based on configured conditions. It is not a server selector or a replacement for traffic rules. It controls when to connect; once connected, Global Routing, the active configuration, and server status determine how requests are handled. First connect manually to confirm the connection works, then enable automatic triggers. This helps distinguish connection problems from condition settings.
Where to configure it and how to test it
Find the On Demand settings in the app and check the applicable networks and conditions. Note the current settings before making changes, then set the triggers you actually need. If a specific Wi-Fi network is involved, check that its name is correct. After saving, grant any permissions requested by the system, then test in real situations—for example, by switching to a relevant network or using the network again after locking the device.
Check both the system connection status and the On Demand status in the app. If the connection returns after you disconnect manually, first check whether an On Demand condition triggered it again instead of repeatedly turning off the main switch. To pause automatic connections, disable the relevant conditions in the app first, then check the system connection status.
Watch for network sign-in requirements and conflicting conditions
Some Wi-Fi networks require sign-in before they allow access. If connectivity is abnormal, first confirm the network itself is accessible, then decide whether On Demand is appropriate. Keep conditions limited to what you need; too many make it hard to tell which one triggered a connection. Test each new condition separately and keep a clear way to reconnect manually.
Data: Track Traffic and Request Activity
Data shows traffic statistics recorded by the app. Open Data and first check the time range and counting method shown in the current view, then distinguish uploads, downloads, and other categories. Counts on different screens may cover different periods. A cumulative total is not a current speed, and a momentary change does not represent connection quality over the entire session.
To compare statistics with a particular action, note the current count, make one specific request, then return to Data and check the change. If the interface offers a reset, record any history you need before resetting, then observe traffic for a short period. Background apps may also make requests, so minimize other network activity during the test.
Statistics can help show whether data changes after connecting or whether traffic rises noticeably over time, but they cannot explain on their own why an individual request failed. App logs, system statistics, and your service provider’s billing may use different methods, protocol overhead, and time periods. Do not treat the Data figures as an exact substitute for your provider’s remaining allowance.
If traffic changes but a page still will not load, check the failed domain, DNS resolution, and rule matching. If there is no change, first confirm the connection status and whether the request used the current network route before assuming a server problem. For detailed troubleshooting, see Troubleshooting.
Settings: Common Options and Troubleshooting Order
Settings options affect different parts of the app. Look for the names below; some options and locations depend on the device and current app interface. Note the original value before changing anything, and adjust one option at a time to avoid introducing multiple variables.
DNS: Check Resolution Before Changing the Route
DNS resolves domain names to IP addresses. Check related options in Settings and in the DNS configuration for the active Config. When using a custom configuration, check its DNS settings as well; changing a value in one screen does not guarantee that every request uses the new method. The active configuration and connection logs determine the actual scope.
If a latency test succeeds but a domain cannot be reached, first check whether the domain resolves and whether the DNS service is reachable, then consider changing the resolution method. DNS over HTTPS also requires an accessible service URL and suitable connection conditions. Avoid mixing several settings whose purpose is unclear. After each change, make a new request and account for the effect of caching.
Test Method: Understand What Connectivity Test Measures
Test Method selects how Connectivity Test runs; check the current selection in Settings. Understand the test target and applicable conditions before testing a server. Different methods have different requirements for ports, protocols, and target reachability, so their results are not directly comparable.
For a meaningful comparison, keep the network, test method, and target the same. A successful test only confirms that this probe completed; it does not guarantee that sign-in, downloads, or sustained transfers will work. A failed test may also mean the test target is unreachable. Record the test conditions, not just the latency number.
Today Widget: Quick Access and Device Support
Today Widget provides access to supported widget features. After checking the related options in Settings, look for the system’s widget-adding interface to confirm availability. Where widgets can be added, what they show, and what actions they support depend on the device and system. An option in the app alone does not mean it is supported everywhere.
If the widget does not match the status shown in the app, open the app to verify the status, then check whether the system widget has refreshed. On Demand conditions may still trigger automatic connections, so after disconnecting with a widget, check whether the connection starts again.
iCloud: Check What Will Sync First
iCloud features save or sync app data within their supported scope. Check the sync options actually available in Settings, and verify the Apple Account and iCloud permissions in system settings. Before enabling sync, check the content on this device and any other device, preserve important configurations, and then start syncing.
Syncing does not guarantee that all data is fully backed up or that a connection on another device will be ready immediately. After syncing, verify servers, the selected configuration, and key settings. Changes made on multiple devices can lead to differences; when resolving a conflict, preserve both versions and avoid deleting entries repeatedly before confirming the sync status.
Diagnostics: Reproduce an Issue to Gather Clues
Diagnostics collects diagnostic information and helps investigate connection problems. Find the relevant option in Settings, identify the behavior you want to reproduce, then start recording as directed and perform the failing action once. Note the network, Global Routing mode, selected server, and active configuration so you can identify which layer may be involved.
Logs may contain domains, addresses, subscription details, and authentication-related information. Review them and hide sensitive fields before sharing; include only what is needed to identify the issue. Stop diagnostic recording when finished, and do not keep detailed logs longer than necessary just to collect more information.