Official Manual / Getting Started

Shadowrocket Setup Guide

Import your server details or subscription, then choose a routing mode. After connecting, check the server test and actual access separately; the switch status alone does not show how traffic is routed.

Before you begin: Install Shadowrocket on your device and have your own subscription link or server details ready. This site does not provide, sell, or recommend servers or subscriptions. This guide uses the iPhone / iPad interface.

Shadowrocket for iPhone / iPad is available on the App Store for a one-time $2.99 purchase; check the App Store page for system requirements. The Mac (Apple silicon and Intel), Windows, Android, and Linux versions are free; get their installers from this site's download page. Buying the app does not include a service plan.

01 Import

Add a server or import a subscription

Open Shadowrocket and go to Home. Find Add Server in the SERVER section. You can also open the add screen with the plus sign in the upper-right corner. First, check what your service provider gave you: a set of server details is for manual setup, while a subscription link retrieves a group of server entries. Choose one method; you do not need to add each server individually after importing a subscription.

Have server details? Check the Type first

In Add Server, tap Type and select the protocol specified by your service provider. For example, with Shadowsocks, enter the hostname in Host, the port in Port, then enter the exact Password and Method values. Fields vary by protocol, so do not copy fields from a screenshot for a different protocol. Enter only a hostname or IP address in Host, not a full URL with a path. When copying a password, check for extra line breaks or spaces at either end. If your service provider supplied a QR code for an individual server, import it with Scan QR Code and check the populated details before saving.

Have a subscription link? Choose Subscribe

Choose Subscribe under Type, paste the complete link into URL, then save as prompted. Parameters after the question mark in a link may be used for authentication; do not remove them or post the link publicly when asking for help. Return to Home and wait for the group and entries to load. If the group appears without any servers, try the subscription's update action, then check that the link is complete and still valid. Import from Cloud JSON in the screenshot is for JSON imports, not for entering a standard subscription link.

Once the entries appear, tap the server you want to use and check the selection indicator in the list. A successful import only means the client has read the entry; it does not confirm that the server can connect. Leave the switch off for now, and set how traffic will be handled next.

Shadowrocket Add Server screen showing the Type, Host, Port, Password, and Method fields
Add Server: choose Type first, then fill in the fields required by that protocol.

02 Routing

Choose a Global Routing mode

Return to Home and tap Global Routing. This setting determines how traffic is handled after connecting; it does not select a server. Select a server under SERVER. When changing modes, you can compare results using the same server as long as you do not select a different entry. If you already have a configuration file to use, choose Config for rule-based routing.

Config
Matches traffic against the rules in the currently enabled configuration file. Rules may send a destination through PROXY, use DIRECT, or block access with REJECT. Some destinations may therefore connect directly while the connection is on; that does not necessarily mean the settings have failed.
Proxy
Routes traffic handled by the client through the proxy. Use it temporarily to check whether a problem is related to the rules. After testing, return to the original mode; there is no need to change the default route for all traffic long-term to test one destination.
Direct
Lets traffic handled by the client access its destination directly, without going through the selected server. When comparing basic network access, distinguish between the client switch being on and traffic actually passing through the server.

If you choose Config, identify which file is currently in use. The Config tab at the bottom manages configuration files; it is separate from the mode selector on Home. In Config, first check which file is enabled, then open that file and review Rule. Being able to open the edit screen does not mean the file is enabled. Add Rule adds a rule; it does not enable a file.

You do not need to edit rules when getting started. Just remember that rules are matched in order; one destination may match multiple conditions, and the first matching rule usually determines the policy. If nothing matches, check the final FINAL rule. For details on matching exact domains and domain suffixes or adjusting the fallback policy, see the rules and configuration fields reference. After choosing a mode, return to Home and confirm the expected option appears under Global Routing.

Shadowrocket configuration file editor showing General, Rule, Hosts, URL Rewrite, and Add Rule
Config: review the file's Rule here; choose a mode under Global Routing on Home.

03 Connect

Turn on the connection switch on Home

On Home, check the following from bottom to top: the intended entry is selected under SERVER, Global Routing shows the expected mode, and the status at the top is Not Connected. Then turn on the switch at the top. When connecting for the first time, iPhone or iPad may show a system request to add a VPN configuration. This is a system permission step, not a server account sign-in.

Allow a VPN configuration only when you have just initiated the connection and the app named in the system prompt is Shadowrocket. If the system asks you to unlock the device or authenticate, follow the instructions on screen. If you cancel the authorization, the app may return to a disconnected state. In that case, return to Home and initiate the connection again; do not import the subscription again. If a work- or school-managed device restricts VPN configurations, ask the device administrator what is allowed. Do not remove existing management configurations.

After completing the system steps, return to Home and wait for the switch status to settle. Check whether the top still shows Not Connected. If the switch resets as soon as you turn it on, note the message and check whether another VPN is already in use on the system. The connection may briefly change when switching between Wi-Fi and cellular data. For the first verification, stay on the same network to avoid mistaking a network switch interruption for incorrect server details.

A switch that stays on means you can continue to the next step; it does not mean every destination will load. Avoid changing the server, mode, and test method all at once. Keep the selected entry, run Connectivity Test, then use a browser to check actual access.

Shadowrocket Home screen with the Not Connected switch at the top, followed by Global Routing, Connectivity Test, and SERVER
Home: check the switch, routing mode, and test entry on one screen.

04 Verify

Check test results and actual access separately

Tap Connectivity Test on Home and wait for the results. If the list has multiple entries, focus on the currently selected server; do not mistake a successful result for another entry as the result for the current connection. A test response only shows that a response was received using the current test method. It does not prove every webpage follows the same route, and a single timeout does not prove that a server has been disabled.

  1. Check an actual page first. Use a browser to open a page that normally loads and confirm that its content has reloaded. Try another working page link to avoid mistaking content retained in an existing tab for a successful load this time. Keep the same network and use the same destination for before-and-after comparisons.
  2. Then check whether the rules behave as expected. If you are using Config, choose one destination expected to use DIRECT and another expected to use PROXY in the current file, and open each. If both pages load, that only confirms access; to determine which rule matched, also check the actual requested domain and diagnostic records. Images, sign-in, and page content may each request different domains.
  3. Change one condition at a time. If the same destination fails with Config but works with Proxy, first check whether an unexpected rule matched the domain or whether it fell through to FINAL. If both modes fail, check the server or current network before changing rules. Switch back to the original mode after testing.

When verification is complete: The connection stays on, you have checked the test result for the selected entry, and you have verified the required access using an actual page. If the results do not agree, note the failing destination, mode, and network conditions, then troubleshoot by category in the next section.

05 Troubleshoot

Troubleshoot based on where the issue occurs

No entries appear after import

Return to Home and check whether the subscription group appears. If there is no group, first check that you selected Subscribe and saved successfully. If the group exists but has no content, check the device network and the subscription update result. Servers added manually do not update when a subscription refreshes. If your service provider changed an address or parameter, update the corresponding entry; do not mix an old link with new details.

The switch resets, or every test times out

If the switch resets, first check system VPN permissions, device management restrictions, and whether another VPN is running. If the switch stays on but every test times out, pause the connection and check whether the device's current network can open a page that normally loads. For example, if Wi-Fi requires a sign-in, complete it before returning to Home to try again. If only one server fails, check its protocol, hostname, and port. If the subscription has other available entries, switch only the server and test again without changing Global Routing.

Tests respond, but some apps or pages fail

First check Rule in the current configuration file to see whether the failing destination uses a different policy than expected. Then open Settings, check Test Method, and note the current option. Keep the test method the same when comparing results. Look for clues from the reproduction in Diagnostics. If the connection starts again by itself after disconnecting, check whether On Demand is triggering it based on conditions. Do not confuse on-demand reconnection with a faulty manual switch.

Troubleshooting notes for your service provider should include the time of the issue, network used, selected mode, scope of the failure, and any visible error message. Before sharing a screenshot or record, conceal subscription links and their parameters, server credentials, and personal information. If the issue began after a rule change, restore the last working configuration and compare rules one at a time; there is no need to delete the subscription or reinstall the app.

Shadowrocket Settings screen showing Test Method, On Demand, Diagnostics, Proxy, TCP, and UDP
Settings: check Test Method, then review On Demand or Diagnostics based on the issue.
Download Shadowrocket for all platforms