OFFICIAL MANUAL / GETTING STARTED
Import and Connect with Shadowrocket
Using iPhone and iPad as examples, start with an existing subscription or server details, then add an entry, choose a mode, authorize the connection, and verify the result. For your first setup, get one entry working before adjusting rules.
Recommended order: complete the first four steps, then use Step 5 to check the point where you encountered a problem. Avoid changing the server, DNS, and rules at the same time, or it will be difficult to tell which change affected the result.
STEP 01 / ADD SERVER
Add a Server or Import an Existing Subscription
Open Shadowrocket and go to Home. Find the SERVER group and the Add Server option. Before entering anything, identify the type of details you have: a subscription link imports and updates a group of entries, while a single share link, QR code, or set of individual parameters adds a specific server. You do not need to use both methods; choose the one that matches your details.
Existing subscription link: use Subscribe
Open Add Server, select Subscribe under Type, then paste the complete subscription link into the URL field. Get the link from your service provider. Preserve its path, query parameters, and letter case when copying; do not copy only the domain or include accompanying instructions. Enter a name that is easy to recognize, save, then return to Home and wait for the subscription content to load.
After importing, check whether actual server entries appear in the SERVER group. Seeing only the subscription name does not necessarily mean the content was retrieved successfully. If the group is empty, check the error message first, then verify that the link is complete and still valid, and that the current network can retrieve the subscription content. Updating a subscription reloads remote details. Before making manual changes later, check whether an update might overwrite those fields.
Existing server parameters: enter each value as provided
If you have details for a single server, open Add Server, select the specified protocol under Type, then enter Host, Port, and the relevant authentication parameters. For Shadowsocks, for example, check Password and Method. Other protocols may show different fields; do not enter one protocol's parameters under a different Type. Port is a separate field, so do not append it to Host. Preserve symbols and letter case in passwords exactly as provided.
If the details include a QR code, use Scan QR Code. Use Import from Cloud JSON only when you have the corresponding cloud JSON data. These options are not general-purpose importers for arbitrary files. After importing, open the entry and check the protocol, address, and port. This helps avoid troubleshooting incorrect details because a QR code expired or the copy was incomplete.
Step complete when: The SERVER group on Home contains a selectable server, and its parameters match the original details. Do not connect yet; first decide which Global Routing mode to use in the next step. If you are unsure about a protocol field, consult the Glossary rather than guessing.
STEP 02 / GLOBAL ROUTING
Choose a Global Routing Mode
Return to Home and open Global Routing. This setting determines how the client handles intercepted requests; it is separate from choosing a server. The three modes are Config, Proxy, and Direct. After switching, return to Home and check the selected option rather than relying on what you used last time.
Everyday routing: Config
Config selects a policy based on the rules in the currently enabled configuration. Open Config at the bottom and confirm that the required configuration file is selected, then review General and Rule. General contains common settings; Rule determines how requests are matched. Hosts, URL Rewrite, and HTTPS Decryption are also sections in the configuration, but you do not need to enable each one just to make the configuration feel complete during your first connection.
Rules are usually matched in order, so more specific rules should come before fallback rules. Add Rule adds a rule, but first determine its target, match type, and policy. The example below demonstrates rule syntax and order only. It is not a complete configuration to replace your existing details, and it contains no server information. example.com is an example domain; PROXY and DIRECT are policy keywords.
DOMAIN-SUFFIX,example.com,PROXY
IP-CIDR,192.168.0.0/16,DIRECT
GEOIP,CN,DIRECT
FINAL,PROXY
This snippet checks the specified domain first, then the local network address and GEOIP condition. FINAL applies only if none of the preceding rules match. The actual result depends on the full contents of the current configuration; seeing a DIRECT rule alone does not mean all requests will connect directly. Save the original configuration before editing so you can restore a known state while troubleshooting.
Testing a route: Proxy and Direct
Proxy sends ordinary requests through the selected proxy route and can help you briefly test whether the server connection works. System traffic and local network bypasses may still depend on related settings. Direct handles requests directly; selecting an entry in SERVER does not automatically route traffic through it. For rule-based routing, return to Config instead of relying on a temporary test mode long-term.
Step complete when: You know which mode is selected. If you chose Config, you also know which configuration is in use. If you do not yet have a rule file you can verify, use Proxy to test an existing server first, then configure Config as needed. For more on rules and DNS, see the Troubleshooting Guide; for now, continue with the connection steps.
STEP 03 / HOME
Select a Server and Turn On the Connection
Return to Home, select the server you just imported in the SERVER group, and confirm that the selection indicator is next to the intended entry. A subscription may contain several entries with similar names. For your first test, use one consistently instead of switching repeatedly during the connection process. Check the current Global Routing value as well to confirm it matches your choice in the previous step.
Tap the switch near Not Connected at the top. The first time you enable it, iPhone / iPad may show a system prompt asking to add a VPN configuration. Confirm that it was triggered by your current Shadowrocket action, then follow the system instructions to authorize it. If the device asks you to authenticate, use its normal authentication method. Authorization to add a VPN configuration establishes local network interception; it does not confirm that a subscription is valid or that a server has been verified.
After authorization, return to Shadowrocket and check whether the status at the top changes to connected. If the switch turns off again automatically, do not tap it repeatedly. First check whether an authorization prompt was canceled, the configuration failed to install, or another specific error appeared. If another VPN connection is running on the device, disconnect it before trying again. Organization-managed devices may also have management restrictions; do not remove management configurations whose purpose you do not know.
Once connected, keep the current server and mode unchanged for now. A VPN indicator in the system means the tunnel configuration is running, but it does not by itself prove that a website was accessed through the server. Remote authentication errors, DNS resolution failures, and incorrect rule selection can occur even after the switch is on, so verify actual requests in the next step.
Before switching between Wi-Fi and cellular networks, note the current network and test results. A network change can affect DNS, routing, and connection conditions. For your first setup, complete the full test on one stable network. When you are done, return to Home and turn off the switch. If it reconnects automatically afterward, check whether On Demand in Settings has automatic connection conditions configured.
Step complete when: The connection status at the top of Home has changed and does not immediately revert. Do not treat an enabled switch as the end of the process; use Connectivity Test and an actual visit to verify the connection.
STEP 04 / CONNECTIVITY TEST
Verify Connection Status, Access, and Routing
Tap Connectivity Test on Home and wait for the result. It can help assess reachability under the current test conditions, but the test method and target affect the result. A successful test means only that this test passed; a timeout does not prove that the server is completely unavailable. Keep the result, then cross-check it with a browser and connection records.
Visit a page first, then check the records
Open a browser and visit a simple HTTPS page that you know is working. Refresh it once so you are not just seeing previously cached content. Check that the page body and necessary resources load, not just the title. Then test the app you actually need to use. If the browser works but one app fails, you have narrowed down the problem and do not need to start over with purchase or installation.
Return to Shadowrocket and check the connection records for this visit in Data. Compare the destination domain, time, and available policy information against the request. With Config, focus on which rule matched and whether the final policy was PROXY or DIRECT. Records may be displayed differently in different views; use the fields shown in your current version. If a field is not present, do not assume its absence indicates an error.
If the page opens but the record shows DIRECT, that only confirms a direct request worked; it does not verify the selected server. Conversely, if a request matched PROXY but failed to load, continue checking the server parameters, remote status, and DNS rather than changing every rule to the same policy. The goal is to answer “Where did this request go?” not just “Did the page open?”
Change one condition at a time when comparing results
If you suspect that routing in Config is causing an issue, temporarily switch to Proxy and test the same page again using the same server and network. If Proxy works but Config does not, check the configuration file and rule order first. If both fail, focus on the server details and network conditions. After comparing, restore the mode you intended to use and verify it again.
Do not rely only on an IP location lookup page to decide whether the connection works; caching, database update intervals, and request routing can all affect what it displays. Also, do not use a single test result to compare long-term speed. For a first connection, reliably loading the intended content and seeing connection records that match the expected policy are more useful than a single momentary test value.
STEP 05 / SETTINGS & DIAGNOSTICS
Troubleshoot the Failure Point; Do Not Reset Everything at Once
First identify where the process stopped, then check the relevant settings. A subscription that will not import, a switch that will not turn on, and no access after connecting are different kinds of problems. Note the current network, selected server, Global Routing mode, and error message, then change only one thing at a time. This preserves useful troubleshooting information even if the issue is not resolved.
Subscription import fails or no entries appear in SERVER
Return to the subscription editor and check that the URL does not contain extra spaces, line breaks, or instructions, and that all parameters are intact. A link opening a page in a browser does not necessarily mean it returns subscription content the client can parse; a login page, error page, or ordinary webpage cannot replace subscription data. Check the instructions provided with the details and, if necessary, ask the original service provider to confirm the link status. Do not keep importing the same expired link.
The switch turns off again or the connection keeps changing
First check that the initial VPN authorization was completed, then see whether another VPN configuration is active on the device. Open Settings and check On Demand: it may trigger automatic connection under certain network conditions, so reconnecting after you turn it off manually does not necessarily mean the switch is broken. For initial troubleshooting, you can temporarily disable automatic triggers, complete a manual test, and then restore them. On organization-managed devices, ask the device administrator about any restrictions.
Tests time out or webpages do not open while connected
Check Type, Host, Port, and authentication parameters again. A mismatch in even one of the password, Method, or protocol-specific fields may prevent a connection. In Settings, check Test Method and confirm that it matches what you are trying to verify. If one test method times out but actual HTTPS access works, do not remove the server based on the test alone. If real access also fails, compare with another existing valid entry under the same mode.
If you can see connection attempts but they consistently fail during domain resolution, first check the DNS settings in the configuration. Do not enter multiple addresses from unknown sources or change DNS, IPv6, and rules all at once. Restore the configuration saved before your changes, then repeat the same request. If Wi-Fi fails but cellular works, first check the current Wi-Fi login status, network restrictions, and resolution conditions instead of reinstalling the client.
Some apps fail or behavior changes after an update
For issues affecting only some requests, find the relevant domain and rule in Data, then check whether an incorrect policy was applied. If the behavior changed after an app or subscription update, first confirm that the current server is still valid and that the originally selected configuration file is still selected. Keep the old configuration before making changes. Clearing all data immediately removes the basis for comparison and may lose details that have not been backed up.
For more information, check the available diagnostics under Diagnostics in Settings. Before sharing records, hide subscription URLs, authentication parameters, QR codes, and any information that could identify your personal connection details. Do not share a complete configuration publicly. Settings such as Proxy, TCP, and UDP have specific scopes; avoid changing all of them just to experiment during initial troubleshooting.
If these steps do not resolve the issue, continue by symptom in the Troubleshooting Guide. For field definitions, consult the Glossary; for common usage questions, see the FAQ. When troubleshooting further, noting which network, which mode, and which requests succeeded or failed is more useful than simply saying “it won't connect.”