Global Routing and rule order
In Global Routing, Config matches requests against the current configuration, Proxy sends eligible requests through the selected proxy, and Direct connects without a proxy. To use rule-based routing, check the current configuration first, then select Config. Rules are generally matched in order, so put specific domain conditions before catch-all rules. FINAL handles requests that did not match earlier rules. After making a change, test the same destination. Do not change both the server and rules at once, or it will be difficult to identify what affected the result.
[Rule]
DOMAIN-SUFFIX,example.com,PROXY
GEOIP,CN,DIRECT
FINAL,PROXY
Global RoutingConfigPROXY / DIRECT
On Demand conditions
On Demand requests a connection when configured network conditions are met. Set it up after confirming that a manual connection works. In Settings, open On Demand and decide which networks should trigger a connection before setting the conditions. It does not fix server passwords, certificates or rules, and does not guarantee that every background request will succeed. If the connection starts again after you turn off the main switch, check the trigger rules here first. After changing them, test on both Wi-Fi and cellular networks to avoid mistaking automatic reconnection for a faulty switch.
Settings → On Demand
SettingsOn Demand
Type and protocol parameters
Shadowrocket supports protocols including Shadowsocks, VMess, VLESS, Trojan and WireGuard. In Add Server, Type must match your existing server before you enter Host, Port and the corresponding authentication fields. Different protocols require different passwords, identifiers or keys; changing Type alone does not make all other parameters interchangeable. Get TLS, SNI and transport settings from your service provider and check each one. A share link simply encodes these parameters: its name does not determine the actual protocol or indicate whether the server is currently available.
trojan://[email protected]:443?sni=example.com#my-server
TypeHost / PortTrojan
Subscribe and update behavior
If you already have a subscription link, select Subscribe in Add Server, paste the address provided by your service provider into the appropriate field, then save and update. A subscription usually manages server entries in one place; it is not the same as a configuration file containing routing rules. If an update fails, check your local network, the full address and the service status. Do not repeatedly delete all entries. Manually edited server parameters may be replaced by the next update, so manage long-term custom settings separately. Full links may contain credentials; do not include them in screenshots, public posts or shared documents.
Add Server → Type → Subscribe
SubscribeAdd Server
Config, backups and iCloud
Config manages request-matching rules and related settings. After importing a server, check which configuration is actually enabled. Save a copy before editing, change one clearly defined group of rules, then check the match result for a test destination. To store content across devices, check the available iCloud sync options in Settings, and verify the account, sync scope and completion status. Sync is not version history; deletions or incorrect edits may also sync. Keep a separate backup of important configurations, do not share files containing credentials, and check that policies in a restored configuration are still valid.
[Rule]
DOMAIN,example.com,DIRECT
FINAL,PROXY
ConfigRuleiCloud
Connectivity Test and Data
Connectivity Test checks reachability using a selected test method; its result is not the same as download speed. If the connection switch is on but a page will not load, test the local network first, then check the server and Global Routing, and finally look for clues in Diagnostics. Data traffic statistics show usage recorded by the client; they do not replace your service provider’s bill or remaining allowance. During troubleshooting, keep the destination, network and test method fixed, and change one condition at a time. Hide passwords, full subscription links and other credentials before reporting an issue.
Home → Connectivity Test
Settings → Diagnostics
Data
Connectivity TestDiagnosticsData