Shadowrocket Setup Guide
Start by adding a server, then import a subscription, choose routing rules, and verify the connection. Each step explains where to go and what to check before continuing.
Add a server or import a subscription in Add Server
After opening Shadowrocket, stay on Home. First identify the information you have: a host, port, and authentication details correspond to one server; a subscription link provided by your service provider may return multiple server entries. Import one type of information at a time. For initial setup, add one identifiable entry and add others after the connection test succeeds.
Have server details? Select Type, then fill in the fields
Under SERVER on Home, open Add Server. Set Type to the protocol specified by your provider, then enter Host and Port: enter a hostname or IP address in Host and the port separately. Password and Method in the screenshot are fields for the current type; the fields change when you switch Type. Do not paste an entire link into Host or reuse a password or encryption method from one protocol with another.
Before saving, compare the hostname, port, and required authentication fields against the original details one by one. Watch for spaces or line breaks at the start or end when copying. If the address and port appear on one line, separate them before entering the values. Do not guess values for fields your provider has not specified; check the protocol guide to understand what each field is for.
Have a subscription link or QR code? Import it according to its type
If your provider supplies a subscription link, set Type to Subscribe in Add Server, paste the complete link into the link field, and save. Parameters after the question mark are part of the address, so do not remove them. If you have a server QR code from your provider, select Scan QR Code in Add Server. After scanning, check the displayed type and address before saving. Import from Cloud JSON is a separate import option and is not for pasting a regular subscription link.
Return to Home and look for the newly added server or subscription group under SERVER. Expand the group and confirm that at least one selectable entry appears. If you see only the group name and no servers, start with step 05 instead of repeatedly importing the same link. Once the list contains an entry, select the server you want to test, then configure routing.
Choose a routing mode in Global Routing
Return to Home and tap Global Routing. This controls how the client handles intercepted traffic; it is independent of the server selected under SERVER. Choose Config to route different websites according to rules. For a short comparison, use Proxy or Direct.
- Config: Match traffic against rules in the active configuration file and apply the corresponding policy. This mode is useful for checking whether a particular domain follows the expected route.
- Proxy: Route traffic handled by the client through a proxy. Use this to check whether the issue is caused by configuration rules, then switch back to the original mode after testing.
- Direct: Send traffic handled by the client without using a proxy server. If you are connected but traffic is not proxied, this mode may be selected; it does not necessarily mean the switch has failed.
Using Config? Check which file is active
Config in Global Routing is a mode; Config at the bottom is the configuration page. Tap Config at the bottom, find the active file, open its editing page, and review Rule. If there are several files, note the name of the active one first. Editing another file will not change the rules used for the current connection.
For the first test, you can read the rules without adding entries with Add Rule. Choose a domain whose purpose you know, check whether it matches an existing rule, and review its policy, such as PROXY or DIRECT. If no earlier rule matches, check the fallback policy specified by FINAL. Do not confuse uppercase policy terms in rules with the mode names in Global Routing. To look up domain-matching keywords, see the glossary. After checking, return to Home and confirm that the selected mode is still shown.
Turn on the connection from Home
Before turning on the switch, make one final check on Home: the server selected under SERVER is the one you just imported and intend to test, and Global Routing shows the mode you chose. If you are testing rules in a configuration file, leave Config selected and do not change the policy before connecting. This ensures the test corresponds to the server and file you just checked.
Tap the switch beside Not Connected at the top of Home. On the first connection, your iPhone or iPad may show a system prompt to confirm the VPN configuration. Confirm that the request is from Shadowrocket, then follow the system prompts to allow the configuration and complete device verification. Adding a configuration and importing server details are separate steps: the system confirms the former, while the latter should already be in the SERVER list.
Return to the app and wait for the switch state to settle, then check where Not Connected was displayed. If the switch turns off immediately, note the message shown and do not repeatedly tap the switch. If the device has organizational management restrictions or another VPN is active, first check whether a connection can be established on this device. Do not delete configurations you do not recognize.
A switch that stays on means the connection is enabled on the device, but the switch alone cannot confirm that the server is available or that a domain matched a proxy rule. For the first test, keep the current network and server unchanged, and continue to the next step from the same Home screen.
Verify the connection with Connectivity Test and a webpage
First tap Connectivity Test on Home and see whether the selected server returns a result or times out. This test reflects the probe result for the current Test Method. A latency value does not prove that a browser can resolve a domain or that the domain followed the expected policy. If the test times out, note which entry timed out so you do not mistake another server's result for the current connection's result.
Then open a browser and visit a familiar webpage that can be checked normally in a new tab; do not rely on an old page that has already loaded. With Config selected, first test a domain you checked under Rule, then test a domain expected to use DIRECT. A page loading only confirms that this request worked. If the app lets you view the request record, use the request domain and policy shown there to determine whether the expected rule matched.
Four details are enough to record: the network used for testing, the selected server name, the Global Routing mode, and the URL or error type. Before testing again, compare these details. If you switch from Wi-Fi to cellular, treat it as a separate test and do not change the server at the same time. You do not need to share your subscription link or authentication details to reproduce the issue.
Troubleshoot by symptom and check Settings
Start with the earliest point of failure: if the list has no entries, check the import; if the switch will not stay on, check system permission; if the switch is on but a webpage will not load, check the policy and domain resolution. Avoid resetting every setting, or you will not know which change made a difference.
The subscription group is there, but no servers appear
Compare the link with the one from your provider and check that you copied the entire address and selected Subscribe as the Type. A subscription address, an account management page, and an individual server link have different purposes and cannot be used interchangeably. If the app reports a retrieval failure, first confirm that the device has network access while the connection is off, then check with your provider that the link is valid. Do not include a full subscription link in a public screenshot.
The switch turns off, or its state changes when switching networks
If the switch turns off, first confirm that you have handled the system VPN configuration request. If this happens only when leaving Wi-Fi or switching to cellular, open Settings and check On Demand for automatic connection conditions related to the current network. To reproduce the issue, stay on one network and connect manually from Home first; this helps distinguish network switching from a manual connection.
The test returns a result, but webpages do not load
Check Test Method in Settings and retry using the same method; do not directly compare times measured with different methods. Then check Diagnostics for available error details: for a domain resolution failure, check DNS first; for a connection timeout, check the server address, port, and current network; if only one domain fails with Config selected, check the matching rules and policy in the active file. Hide server addresses, subscription links, and authentication fields before sharing diagnostic information.
After correcting one item, return to Home and retest using the same URL from step 04. Once the result is restored, check that you have switched back to your usual routing mode. If you are unsure which Type or authentication field to use, check each field in the protocol guide rather than reimporting the entire subscription.
Getting Shadowrocket for other devices
Shadowrocket for iPhone / iPad is a one-time US$2.99 purchase from the App Store; the Mac (Apple Silicon and Intel) / Windows / Android / Linux versions are free. The desktop and Android interfaces may differ from the screenshots in this guide. See the installation guidance for package selection and system prompts.