Official Manual · First Connection

Shadowrocket Quick Start

Using the iPhone / iPad interface, import a server, choose a mode, and verify the connection.

Before you begin: Make sure Shadowrocket is installed and have your own subscription link or server details ready. This site does not provide servers or subscriptions. You only need one or the other, not both.

Shadowrocket for iPhone / iPad is a one-time $2.99 purchase on the App Store; check the App Store page for system requirements. The Mac / Windows / Android / Linux versions are free to get from this site's download page. A one-time app purchase is not a subscription to a service plan.

For a first setup, follow the steps in order. If you are already connected but access results are unexpected, go straight to verification without importing your details again.

01 · Import

Open Add Server to add a server or subscription

Launch Shadowrocket, go to Home, and open the add screen from Add Server. First, check what information you have: details that list a protocol, server address, and port are for a single server; a link explicitly identified by your service provider as a subscription is used to import a group of entries managed by that link. Do not split a subscription link into separate fields or save a single server address as a subscription link.

Have server details? Select Type, then fill in the fields

Tap Type, select the protocol that matches your details, then fill in the fields shown for that type. In the form shown in the screenshot, enter the hostname or IP address in Host, the port in Port, and the supplied values for Password and Method. Other protocols may show different fields, so use the fields for the selected type rather than copying the screenshot's form. After pasting, check for spaces at the beginning or end, and make sure you have not missed any characters at the end of the password. If you have a QR code for that individual server, you can import it with Scan QR Code; still check the protocol and address before saving.

Have a subscription link? Select Subscribe

In the Type list under Add Server, select Subscribe, paste the complete link into the link field, and save. If the link contains query parameters, keep them all; do not copy only up to the question mark. A subscription link may contain access credentials. Do not post the complete link publicly while troubleshooting, or share an unredacted screenshot of the form.

After saving, return to Home and check under SERVER that the manually added entry appears or that selectable entries have loaded in the subscription group. Seeing only the subscription group name does not mean its list has been retrieved. If the group is empty, first check the link and the refresh result. Once a selectable entry appears, continue to the next step to decide how requests should be routed. The connection is not on yet, so the appearance of an entry does not indicate whether the server is available.

Shadowrocket Add Server screen showing the Type, Host, Port, Password, and Method fields, plus two import options at the bottom
On Add Server, select Type first. The form fields change based on the selected type.
02 · Routing

Choose a routing mode in Global Routing

Return to Home and tap Global Routing. This setting determines how requests handled by Shadowrocket are routed; it does not import servers. If you already have a configuration ready, select configuration (Config) for your first session. If you only want to check whether a server can handle a proxy request, switch briefly to proxy (Proxy) for comparison, then switch back to your usual mode.

Configuration (Config)
Handles requests according to the rules in the current configuration file. Different destinations can connect directly, use a proxy, or be rejected. Direct access to a particular site is not necessarily a problem; first check which rule matches that destination.
Proxy (Proxy)
Handles requests taken over by the client in proxy mode. This is useful for checking whether the proxy path basically works, but success in this mode does not confirm that the rules in your configuration file are correct.
Direct (Direct)
Connects to destinations directly for requests taken over by the client, without using the selected proxy server. Use it for comparison: if direct access also fails, first consider whether the current network or destination is reachable. Selecting this mode does not turn off the connection switch on Home.

After selecting Config, check the active configuration

After selecting Config in Global Routing, go to the Config page and confirm that the expected file is active. The first setting selects the working mode; the second manages the configuration file. They are separate settings. Open the file and look in Rule for rules that match your test destination, checking whether a broader rule above them matches first. FINAL is a fallback for requests that did not match any earlier rule; when getting started, you do not need to rewrite it just to test connectivity.

If you do not yet understand the current configuration, leave the original unchanged and note the current mode and file name. This makes it easy to restore them if you temporarily switch modes later. For more on rule placement, policies, and configuration sections, see Configuration Reference. Once you have chosen a mode, return to Home and connect.

Shadowrocket Config file editing screen listing General, Rule, Hosts, URL Rewrite, HTTPS Decryption, and Add Rule
Config file editing page. To check routing order, start with Rule.
03 · Connect

Select a server and connect from Home

Return to Home, select the server you want to use under SERVER, then check that Global Routing is still set to the mode you chose in the previous section. Selecting a server only specifies which entry to use; it does not connect automatically. Once confirmed, turn on the switch beside Not Connected at the top.

First connection: confirm the system's VPN configuration prompt

When connecting for the first time on iPhone or iPad, the system will usually ask whether Shadowrocket can add a VPN configuration. Confirm that the prompt follows the action you just took and that the app name is correct, then follow the system instructions to allow it and complete any required device authentication. If you previously tapped Deny, return to Home and try turning on the switch again. If the system no longer shows a prompt, or the device is managed by a school or organization, first check the system VPN settings or ask the device administrator about any restrictions; do not repeatedly change the server details.

After returning to the app, check whether the status at the top of Home has changed from Not Connected, and make sure the switch does not immediately turn off again. A connected status means the client has started a connection, but it does not mean every request is forwarded by the selected server. For example, when the current mode is Direct, the switch can stay on while requests still go directly to their destinations. In the next step, use the test results and real requests to distinguish between these two things.

Keep test conditions consistent

For the first verification, stay on the same Wi-Fi or cellular network; do not switch back and forth during testing. If another VPN is active on the device, first check whether it is needed for work or device management; do not remove a managed configuration without authorization. If you have confirmed that it is okay to disconnect the other VPN temporarily, try turning on the Shadowrocket switch again. Once manual connection works, you can check On Demand in Settings if needed, rather than mixing automatic reconnection with the first manual test.

Shadowrocket Home screen with a Not Connected switch at the top and Global Routing, Connectivity Test, and SERVER below
Home shows the connection switch, current routing mode, and test entry point. Select an entry before connecting.
04 · Verify

Run Connectivity Test, then check real-world access

Tap Connectivity Test on Home, wait for the current test to finish, and check the result for the selected entry under SERVER. A response means it responded under the current test method and network conditions; the number is not the time it takes to load a particular webpage. A timeout only means this test did not receive the expected response within the wait period. It is not enough to conclude that all requests are failing.

Test destinations expected to connect directly and through the proxy

If you are using Config, choose one destination in the current configuration that is clearly expected to use DIRECT, then another clearly expected to use PROXY. Keep the switch on and make a new request to each destination in a browser. Note the domains used for testing, and watch for redirects to another domain and whether the failure affects the main page or resources such as images. A webpage may request content from multiple domains; a rule matching the main domain does not mean it will match the other requests too.

A page loading only shows that the request received a response; it does not, by itself, tell you which route it took. If the app's diagnostic records show matching information for the request, compare its domain, matched rule, and policy. If no such record is available, treat the access result as evidence of connectivity, not proof of a rule match. When retesting, make a new request rather than relying on a page that loaded before the test.

Run a single-variable comparison: If the same destination fails under Config, keep the network and server unchanged, temporarily select Proxy, and try again. If it works only under Proxy, first check the active configuration and rule order. Restore the original Global Routing mode after testing.

First verification is complete when the switch stays on, your usual mode is restored, and the test destinations behave as expected. If results differ, keep a note of the network, mode, and error shown, then find the first failing step in the next section. Do not change the server, edit the configuration, and switch networks all at once, or you will not know which change made a difference.

05 · Troubleshoot

Start troubleshooting at the first failed step

First identify whether the entry was not imported, the connection switch did not turn on, the test received no response, or only certain destinations behave unexpectedly. Each symptom points to a different place to check. Address the current step, then return to the corresponding section and test again.

  1. No selectable entry under SERVER: For a manual entry, return to Add Server and check that you selected the correct Type and saved it. For an imported subscription, check that the original link was not truncated and confirm whether entries actually appeared in the group after refreshing. If the group exists but has no entries, check the link status first rather than switching Global Routing.
  2. The switch turns off right away: First check whether the system allows adding a VPN configuration, then check whether another VPN is using the connection. Note any message shown when the switch turns off. If the issue is system permission, importing the same entry repeatedly will not change the result.
  3. The switch stays on, but the test times out: Check Test Method in Settings and retest using the same method to avoid comparing results that mean different things. Then check the protocol, address, port, and credentials one by one; also check that the system date and time are correct. To compare Wi-Fi and cellular networks, keep the same server and test method and change only the network.
  4. The test responds, but some requests fail: First confirm that the current mode is Config, then check the rule order in the file and the domain of the actual request. Note whether the error looks like a domain resolution failure, a connection timeout, or an error returned by the page itself. Do not rewrite the entire configuration based on a single timeout.

To collect more information about an issue, check Diagnostics in Settings. Keep only the time, symptoms, and error text relevant to this test. Before sharing, redact subscription links, authentication details, and server information that should not be public. For further checks on resolution issues, latency tests, and system permissions, see Frequently Asked Questions.

Shadowrocket Settings screen showing Language, Test Method, On Demand, Diagnostics, and network-related settings
Test Method and Diagnostics in Settings are used for retesting and recording issues.