Shadowrocket Official Manual

Shadowrocket Setup Guide

This guide uses the iPhone and iPad interface. Start with an existing subscription or server, choose a routing mode, connect, and verify the configuration by checking the results of actual requests.

Before you begin: Install Shadowrocket and have your own subscription URL or server details ready. Get subscription and server details from your service provider; they are not provided here. A one-time app purchase does not include a service plan.

On iPhone and iPad, Shadowrocket is available from the App Store for a one-time purchase of $2.99. Check the App Store listing for system requirements. The Mac (Apple Silicon or Intel), Windows, Android, and Linux versions are free; choose your device on the download page. Installers are provided through this site at /dl/.

01 · Import

Add a server or import an existing subscription

Open Home in Shadowrocket. Find Add Server in the SERVER group, or tap the plus sign in the upper-right corner to open the add screen. First identify the information you have: if your service provider gave you an updateable subscription URL, select Subscribe; if you have the protocol, address, and port for a single server, add it manually using the matching protocol. In either case, return to Home to check the result. Do not enter a subscription URL as the address of a single server.

Import a URL with Subscribe

In Add Server, open Type, select Subscribe, then paste the complete URL into the URL field that appears. Preserve the protocol at the beginning and any parameters at the end. Do not include explanatory text, quotation marks, or line breaks from the message. After saving, return to Home, expand the corresponding subscription group, and confirm that selectable servers appear. If the group appears without any servers, first confirm that your current network is working and update the subscription again. Then check with your service provider that the URL is still valid. Adding the same URL repeatedly will not fix an update failure and can make it easier to select the wrong group.

Enter a single server with Add Server

Select Type first, then fill in the fields shown for that type using the details from your service provider. In the form shown in the screenshot, enter the server address in Host, the port in Port, and the corresponding password and encryption method in Password and Method. Fields vary by protocol, so do not treat the screenshot as a list of fields that applies to every protocol. If you have a QR code for a single server, use Scan QR Code, then check the entry type after it is scanned. After saving, confirm where the entry appears in SERVER. Seeing an entry only means the details have been added; it does not confirm that the server can connect.

Add Server screen showing Type, Host, Port, Password, Method, and the Scan QR Code and JSON import options at the bottom
Add Server: select Type first, then fill in the relevant fields.

02 · Routing

Choose a Global Routing mode

Once the list contains a selectable server, open Global Routing from Home. This setting determines how requests are handled; it does not switch servers. To route traffic by rules, select Config. To temporarily check whether a problem is related to routing rules, compare the results using Proxy or Direct. Note your original selection before testing and switch back to your preferred mode afterward.

  • Config: Uses the rules in the current configuration file to select a policy for each request. Choose this when you know which configuration is active and want different sites handled by different policies.
  • Proxy: Routes traffic through the proxy without applying rules one by one as in Config mode. Use it to compare how a site behaves over the proxy route.
  • Direct: Sends traffic without using the selected proxy server. You can compare it with Proxy, but selecting Direct does not turn off the connection switch on Home.

Check which Config is active

After selecting Config, open Config at the bottom and confirm that the expected file is in use. Then open that file's edit screen and check Rule. Do not mistake the edit screen in the screenshot for the Global Routing mode selection screen. Rules are matched in order. For example, DOMAIN-SUFFIX,example.com,PROXY sends requests matching that domain suffix to PROXY; FINAL sets the policy for requests that did not match any earlier rule. Check not only whether the target rule exists, but also whether a broader rule earlier in the list matches first. For your first connection, use a configuration you know works and avoid adding rules and switching servers at the same time. See the glossary for the difference between policies and keywords.

Config file edit screen showing General, Rule, Hosts, URL Rewrite, and HTTPS Decryption sections, plus Add Rule
Config: view the Rule section on the file edit screen.

03 · Connect

Turn on the Home connection switch

Return to Home, expand the group you just imported under SERVER, and select the server you want to use. Check that the selection indicator is next to the right entry. Servers in a subscription may have similar names, so compare the full name and group before turning on the switch. Then check the current Global Routing value and confirm it matches your selection in the previous step. When testing a proxy route, do not treat a successful request in Direct mode as evidence that the server works.

Tap the switch at the top of Home, which initially shows Not Connected. The first time you start it, your iPhone or iPad may display a system prompt to add a VPN configuration. Confirm that the request was triggered by the Shadowrocket switch you just turned on, then follow the system instructions to authorize it. Return to the app and check the status at the top. If you dismissed the prompt, first confirm the switch is still off, then try again. If your device is managed by your workplace or school and adding VPN configurations is restricted, ask the device administrator about permissions. Do not keep switching servers to troubleshoot a permissions issue.

When the switch shows that you are connected, the device connection has started. This does not mean every request has gone through the specified server. Keep the network, server, and mode unchanged for the next verification step. If the status returns to Not Connected immediately after you turn on the switch, note any prompt and check system authorization and the current VPN status in step five. For the first test, avoid changing On Demand; otherwise, automatic connection behavior during Wi-Fi or cellular network changes can be confused with manual testing.

Home screen showing Not Connected, Global Routing, and Connectivity Test at the top, with the SERVER group and Add Server below
Home: select a server, then use the switch at the top.

04 · Verify

Verify the connection and routing rules

On Home, tap Connectivity Test and find the result for the server you selected. This result only shows how the server responded to the probe using the current network and test method. A latency result does not confirm that the target domain resolves, that the webpage is accessible, or that the request matched the expected rule. Conversely, a single timeout does not necessarily mean the server is unavailable: test again on the same network and, if needed, check Test Method in Settings. Avoid comparing values from different test methods.

If you are using Config, choose two familiar sites covered by existing rules in the current configuration: one expected to use DIRECT and another expected to use PROXY. Send new requests to each on the same network; do not rely only on webpages that are already open, as they may be cached. If diagnostic records are available, find the entries using the time of your requests and the actual domains, then compare the recorded policies with those expected in the configuration. Being able to open both sites only confirms that access worked. To check whether routing is correct, look at which policy each site used.

If the same site opens in Proxy but not in Config, keep the server unchanged and check the domain match and FINAL settings under Rule. If the site fails in both modes, check for domain resolution or proxy connection issues. Restore your usual mode after testing. To compare server latency and availability in more detail, see the latency testing section of the subscription guide.

05 · Troubleshooting

Find the cause of a connection failure

Import failure: check whether an entry appears in the list

If a subscription does not show any servers, first confirm that you selected Subscribe and pasted the complete URL. If an older subscription still shows a list but updates fail, keep the existing entries and note the error. Do not delete the group right away. If a manually entered server appears but does not work, check Type, Host, Port, and the other fields required by that protocol one by one. Pay particular attention to spaces in copied text and to details from different servers accidentally entered in the same entry.

Switch will not turn on: check system configuration first

Disconnect, then confirm that the device can access the internet over its current Wi-Fi or cellular network. If public Wi-Fi is waiting at a sign-in page, complete the network's sign-in first. Then check whether another VPN is already active in the system or whether you left the initial configuration prompt incomplete. If possible, switch networks once and test again with the same server and mode. If the problem occurs only when switching between Wi-Fi and cellular, check On Demand in Settings. Record manual connection results separately from whether automatic activation behaves as expected.

Connected but webpages will not load: use records to identify the cause

Open Diagnostics in Settings, request the affected page again, and compare the diagnostic information with the time, network, and mode you just used. If domain resolution fails, check DNS first. If a request matches REJECT or uses an unexpected policy, check the rule order. If timeouts repeatedly occur only with the same server, compare its fields with the test results. Change one item at a time and test again before deciding whether to keep the change. When reporting a problem to your service provider, you can include the on-screen message, time, and test method, but first hide your subscription URL and any access parameters it contains. See the troubleshooting FAQ for more symptoms.

Settings screen showing Language, Test Method, Today Widget, On Demand, Diagnostics, and Proxy, TCP, and UDP groups
Settings: find the test method, On Demand, and Diagnostics options.