Official Shadowrocket Manual
Shadowrocket Glossary
App labels help you find settings, protocol names help you check server fields, and rule keywords determine how a connection is handled. Use the index below to find the original term. If a term appears in both the app and a configuration file, check its context before referring to the definition.
01 · APP
App Settings
Keep three settings distinct: whether the connection is on, how traffic is handled, and which conditions trigger an automatic connection.
- Home
- Home is the main screen for the connection toggle and server list. Selecting a server only chooses which one to use for proxy connections; it does not turn the connection on. For an initial test, check the toggle and the selected server separately.
- Global Routing
- Global Routing selects the routing mode used while the connection is active. Config routes traffic according to rules, Proxy sends it through a proxy, and Direct connects straight to the destination. When comparing modes, change only this setting at a time so a server change does not look like a rule issue.
- Proxy
- Proxy is the Global Routing mode that sends traffic through a proxy. It is different from
PROXYat the end of a rule: the former selects the overall routing mode, while the latter is the action taken when a rule matches. - Direct
- Direct is the Global Routing mode that connects traffic straight to its destination. Switching to Direct does not turn off the connection toggle on Home or remove imported servers. Direct results can help determine whether an issue is related to the proxy route.
- On Demand
- On Demand automatically connects or disconnects when specified network conditions are met. It controls when the connection state changes, not whether a domain uses a proxy or a direct connection. If the connection changes unexpectedly after switching Wi-Fi networks, check for a matching On Demand condition.
- Connectivity Test
- Connectivity Test checks whether a server is reachable on the current network under the selected test conditions. For comparable results, use the same network and test method. A successful test only confirms that this probe received a response; it does not confirm that DNS, TLS, or routing will work for every website.
02 · CONNECTION
Protocols
Identify the protocol from the server details you have, then check the address, port, authentication, and transport fields. Two records using the same address may still require different protocols.
- Shadowsocks
- Shadowsocks is an encrypted proxy protocol. Manual setup typically requires a server address, port, password, and encryption method. The password and method must match the server; do not reuse settings from another record just because the address is the same.
- VMess
- VMess is a proxy protocol that identifies users with a UUID. The transport and TLS settings must also match the server. For example, if the server uses WebSocket, check the corresponding path as well. If a latency test fails, compare the original fields first to determine whether the settings are wrong or the server is unreachable on the current network.
- VLESS
- VLESS is a UUID-based proxy protocol that does not provide encryption on its own. Whether and how a connection is protected depends on the accompanying transport security settings. Even if two records use the same UUID, VLESS and VMess are not interchangeable.
- Trojan
- Trojan typically establishes a connection over TLS, then authenticates the client with a password. If certificate validation fails, first check the server name and device time. Changing the password will not fix a TLS handshake that has not completed.
- Hysteria2
- Hysteria2 is a QUIC-based proxy protocol that uses UDP at the transport layer. If the same configuration works on one network but times out after switching networks, UDP reachability is one factor to check. Keep the original settings unchanged so you can isolate the cause instead of changing the network and authentication settings at the same time.
- WireGuard
- WireGuard creates an encrypted IP tunnel between two peers. The endpoint address determines where packets are sent, the public key identifies the peer, and the allowed address ranges determine which destinations can use that peer. Keep your private key on your device or in a protected backup; do not share it in diagnostic screenshots.
03 · MATCHING
Routing Rules
In Config mode, check whether a rule matches a domain or an IP address, then check the action at the end. Put specific exceptions before broader rules that would otherwise take precedence.
- DOMAIN
- DOMAIN matches a domain name exactly.
DOMAIN,example.com,DIRECTmatchesexample.com, but notwww.example.com. Enter the domain name alone, without a scheme, port, or URL path. - DOMAIN-SUFFIX
- DOMAIN-SUFFIX matches the specified domain and its subdomains.
DOMAIN-SUFFIX,example.com,PROXYmatchesexample.comandapi.example.com, but notnotexample.com. To create an exception for a single host, add a DOMAIN rule for that host first. - GEOIP
- GEOIP matches traffic based on the destination IP address's classification in a geolocation database. It uses IP data, not the device's location, the domain suffix, or the website's language. The same domain can resolve to different addresses on different networks and may therefore match different rules.
- IP-CIDR / IP-CIDR6
- IP-CIDR and IP-CIDR6 match specified IPv4 and IPv6 address ranges, respectively. The number after the slash is the network prefix length, as in
192.0.2.0/24. If a destination has both IPv4 and IPv6 addresses, a rule for one address family will not necessarily match the other. - FINAL
- FINAL sets the fallback policy for traffic that matches none of the preceding rules. For example,
FINAL,PROXYroutes the remaining traffic through a proxy. If a domain is unexpectedly using the fallback policy, check that its expected rule appears before FINAL and that the match value is correct. - PROXY / DIRECT / REJECT
- PROXY, DIRECT, and REJECT mean route through a proxy, connect directly, and block the connection, respectively. They appear in a rule's policy field to specify what happens after a match; they do not match domains or identify protocols. A connection blocked by REJECT is behaving as the rule specifies, not necessarily indicating that the server is unreachable.
04 · IMPORT
Subscriptions & Configuration
A subscription manages a server list; a configuration file controls how traffic is handled. Updating a list does not switch configurations, and switching configurations does not change the subscription URL.
- Subscribe
- Subscribe imports a server list that can be updated. Get the subscription URL from your service provider. Refreshing the subscription reloads the list at that URL; it does not test each server. The URL may contain personal access credentials, so hide the full address before sharing a screenshot.
- Add Server
- Add Server lets you enter a server record manually. Select the protocol first, then fill in the server address, port, authentication, and transport settings using the details you have. Manually added records are not updated with a subscription; if the server settings change, edit the record separately.
- SERVER
- The SERVER field specifies the server address for the relevant protocol, usually a hostname or IP address. If there is a separate port field, enter the port there. Do not put a subscription URL used to update a server list in this field. Get server details from your service provider.
- Config
- Config is where you manage and select configuration files; in Global Routing, it is also the mode that routes traffic according to configuration rules. The first determines which configuration is in use; the second determines whether traffic follows its rules. If rule changes have no effect, check both which file is active and whether the current routing mode is Config.
- Scan QR Code
- Scan QR Code reads import details from a compatible QR code. A code may contain a single server record or a subscription URL. After importing, confirm that it appears in the expected list. Treat QR codes containing authentication details as carefully as the original URL.
See the guide to importing, updating, and backing up subscriptions
05 · TROUBLESHOOTING
Networking & DNS
Interpret test results in context. Server reachability tests, DNS lookups, and website connections are separate steps; success at one does not prove the next is working.
- DNS
- DNS looks up records associated with a domain name, such as the IPv4 or IPv6 address used to establish a connection. If a website will not load, first check whether the domain resolved to an address or whether the connection failed after an address was returned. In the latter case, also check the matching policy, connection route, or TLS.
- Latency
- Latency is the time from sending a test request to receiving the required response, usually measured in milliseconds. Results vary with the network, test method, and test target. Low latency does not indicate download speed or rule out intermittent timeouts.
- TLS
- TLS protects data in transit and uses certificates to verify the peer's identity. If the destination port is reachable but certificate validation fails, check the device time and the server name used for validation. This is different from a DNS lookup that fails to return an address.
- UDP
- UDP sends data in datagrams and does not guarantee delivery, ordering, or retransmission. A working TCP connection does not prove that UDP is reachable on the same network. When troubleshooting a protocol that uses UDP, keep the current configuration and retest on another network for comparison.
Client App vs. Network Service
Get the iPhone / iPad version from the App Store product page for a one-time US$2.99 purchase; check the App Store listing for system requirements. The Mac (Apple silicon and Intel), Windows, Android, and Linux versions are free. Installers are available from this site's client downloads page under /dl/.
A one-time client purchase is not a network subscription. Get servers and subscriptions from your service provider. This site does not provide, sell, or recommend servers or subscriptions. If you already have server details, follow the setup guide to import them and test the connection.