Official Guide · First Setup
Shadowrocket Quick Start
Start with your existing connection details, complete the first connection, then check whether commonly used apps are routed as expected.
Add a server or import a subscription with Add Server
Open Shadowrocket and stay on Home. Tap the plus sign in the upper-right corner or Add Server in the list to open the add screen. First check what kind of information you have: if you have a single address used to sync a server list, import it as a subscription; if you already have a protocol, address, port, and other connection details, add them manually. For your first setup, choose one method so you can identify where the new entry came from.
Have a subscription link? Choose Subscribe
In Add Server, tap Type and select Subscribe. Paste the complete link into the address field that appears. Keep the link's query parameters intact, and remove any quotation marks, spaces, or line breaks accidentally included when copying. After saving, return to Home and check whether the SERVER section shows the subscription group and selectable entries. Seeing only the group title does not mean the list has been fetched successfully. Expand the group to confirm, and select one of its entries before continuing.
Have server details? Fill in the fields for the specified protocol
Under Type, select the protocol explicitly named in your details. Using the fields shown in the screenshot as an example, enter the hostname or address in Host, the port in Port, and then enter Password and Method as provided. The fields change when you switch protocols; do not fill them using fields from a different protocol, and do not append the port to the hostname and enter it again separately. Save, return to Home, and check that the new entry matches your details.
If you have a QR code for your own server, use Scan QR Code from the add screen. After scanning, check the detected protocol and address before saving. Import from Cloud JSON, shown in the screenshot, is for a different data format; do not enter a standard subscription link there. For more on data formats and protocol fields, see the glossary.
Choose a Global Routing mode
Once the list contains a selectable entry, return to Home and tap Global Routing. This determines which path traffic takes; it does not import servers or act as the connection switch at the top of the screen. To use existing rules for the first time, select Config, then return to Home and confirm that the row shows Config.
- Config: Uses the active configuration to decide, based on its rules, which destinations use a proxy, connect directly, or are rejected. Choose this for everyday rule-based routing.
- Proxy: Routes traffic handled by the app through the selected proxy path, rather than applying the everyday configuration's rules individually. Use it for comparison during testing: if the same destination opens here but fails after switching back to Config, check the configuration.
- Direct: Lets traffic handled by the app access destinations directly without going through the selected proxy server. Use it to compare with the proxy path; it does not turn off the connection switch at the top.
After choosing a mode, open the Config page to confirm which configuration is active. The Config tab at the bottom is where you manage configuration files; Config under Global Routing is the mode that uses a configuration to handle traffic. They share a name but have different functions. Once you open a configuration, check the rules in the Rule section and use Add Rule to add one. For your first connection, keep the existing configuration; you do not need to edit Hosts or enable HTTPS Decryption for testing.
To check the rules, look from top to bottom for the first entry that could match. For example, if an earlier rule matches an entire domain suffix, that domain will often not reach a later rule written for it individually. FINAL is the fallback when no earlier rule matches; it does not mean that all traffic uses the same path. Note a destination with a clear expected outcome, then use it to verify routing once connected.
Turn on the connection switch in Home
Return to Home and select the server you just added under SERVER. When you imported a subscription, select a server inside the group, not the group title. Check the selection indicator in the list before and after switching; do not mistake the previous selection for the entry you just added. Then check Global Routing to confirm that it is still set to the mode you chose in the previous step.
Now turn on the switch at the top of Home, next to Not Connected. The first time you connect, your iPhone or iPad may show a system prompt to add a VPN configuration. Confirm that the prompt is from the Shadowrocket action you just started, then follow the system instructions to allow it and complete device verification. If you cancel the prompt, the first connection will not complete. When you try again, check for any pending system prompts before reimporting a subscription.
Return to Home and wait for the status at the top to change from Not Connected to Connected before testing access. If it changes briefly and then returns to Not Connected, note whether this happened before the system prompt, during verification, or after returning to the app. This helps identify the issue better than repeatedly tapping the switch. If another VPN is already active on the device, first find out what it is used for. Do not remove configurations managed by your employer or school.
Connected at the top means the app's VPN connection has been established; it does not guarantee that the selected server can access every destination. Keep the current server and mode unchanged, then test the server and actual access separately to avoid conflating the results.
Test server reachability and actual routing separately
First, tap Connectivity Test on Home and review the result for the entry you just selected. A test result means that the entry passed the test method used in the current network environment. It does not mean every website will open or every rule is correct. If the test times out, first make sure the device itself can access the internet. Check whether you are still on a Wi-Fi sign-in page, then test the same entry again.
Next, test actual access. In Config mode, use a destination whose rule you confirmed in the Rule section in the previous step. Open it in a new browser tab and check whether the final domain was redirected. If a page was already open on the device, reload it before judging the result; seeing old page content does not mean the latest request succeeded. A page may load resources from multiple domains, so seeing the page does not mean all its requests used the same policy.
If you know one familiar destination should use DIRECT and another should use PROXY, visit each and compare the result with the expected rules. To confirm which rule matched a particular request, use the logs available in your current version and check the request time and destination domain. Success or failure alone cannot tell you which path was used. If a request matches REJECT and is denied, do not mistake that for a disconnected app.
If only one destination is affected, keep the network and selected server unchanged and test the same address under both Config and Proxy. If it fails only under Config, first check rule order and the policy that actually matched. If it fails in both modes, also check DNS resolution, server reachability, and the destination itself. Do not use sensitive services for comparison. After testing, switch back to the original Global Routing mode.
Troubleshoot based on where the failure occurs
Find the last action that worked: did you save the details, select an entry, stay Connected, and are only some destinations failing? Choose one check below based on what you see; there is no need to reinstall from scratch. After changing one thing, retry the action that originally failed. If the result is unchanged, restore that setting before deciding what to try next.
A subscription group appears, but there are no selectable entries
Expand the group on Home and confirm the list is actually empty. Check the subscription record to make sure the address was pasted in full, then use the update action available for that subscription group to fetch the list again. If a message says the link is unavailable or requires authorization, check its status with the original provider. For manually added entries, recheck Type, Host, and Port; do not guess at values by changing the original details one field at a time.
The switch will not stay on, or test results keep changing
First recheck the system authorization for the initial connection, then check whether another VPN is active. If the status changes after leaving Wi-Fi, returning to the app, or locking the screen, open Settings and check whether On Demand is enabled and its conditions match what you expect. If only two test results differ, also check that the network, selected entry, and Test Method are the same; results from different test methods are not directly comparable. Open Diagnostics if you need to check device network details.
Connected, but some domains will not open
Return to Config and confirm the active configuration. Then check whether the destination matched a broad rule first or fell through to FINAL. If several familiar domains fail to resolve on the same network, note the original DNS settings first, then follow the DNS section in the settings guide. Do not change rules, DNS, and server details at the same time; even if access is restored, it will be hard to tell which change made the difference.
If the issue is still unclear, note the steps needed to reproduce it, such as: “On the same Wi-Fi, I selected this entry and got a result from Connectivity Test, but a destination fails under Config.” Record the symptoms only; do not include a complete subscription link, server credentials, or unchecked logs.