Official Manual · First Connection

Shadowrocket Getting Started

Add an existing server in Home, then choose how traffic is routed. After connecting, check that the server responds and traffic follows the rules.

01 / Import

Add a server or import a subscription through Add Server

Open Shadowrocket and switch to Home. Tap the plus sign in the upper-right corner to open Add Server. Before entering anything, identify which type of information you have: a subscription link usually retrieves a group of servers, while details for an individual server include its protocol, address, port, and authentication fields. Choose one method; there is no need to add the same server twice.

Have a subscription link? Choose Subscribe

Tap Type, choose Subscribe, paste the complete link into the URL field, then tap Done. Keep any parameters at the end of the link when copying it, and check that the clipboard does not include spaces, line breaks, or explanatory text. After saving, return to Home, expand the relevant group, and confirm that selectable servers appear. Seeing a group name alone does not mean the app has retrieved any servers. If the list is still empty, start with import troubleshooting.

Have details for one server? Enter them for its protocol

Open Add Server and go to Type as before, but this time choose the protocol specified in your details, such as Trojan. Enter the supplied address, port, and authentication information in the fields shown. The protocol determines which fields appear: do not paste a subscription link into the server address field or guess values for unfamiliar options just to fill in the form. If several entries look similar, add a note to one to make it easier to identify and avoid selecting the wrong one in the next step.

After saving, find the imported entry in Home and check that its name and protocol are as expected. Once it appears in the list, you can continue; determine whether it connects only after turning on the switch and running a test. Subscription links may contain access credentials. When troubleshooting, do not share the full link, authentication details, or an uncensored screenshot.

02 / Routing

Choose how traffic is routed in Global Routing

Return to Home and tap Global Routing above the server list. This setting determines how traffic is handled after the connection is enabled. Importing a subscription only provides servers to use; it does not specify which sites should use a proxy. To route traffic by rules, also check the active configuration file.

  • Config: Routes traffic according to the rules in the active configuration file. Rules can send traffic through PROXY, use DIRECT, or apply REJECT. Use this mode when some sites should use a proxy and others should connect directly.
  • Proxy: Sends traffic handled by the client through a proxy. For initial troubleshooting, use it to test whether the selected server can handle proxy traffic. When the test is done, switch back to Config if you normally route traffic by rules.
  • Direct: Sends traffic handled by the client directly, without a proxy server. Use it to compare against your local network's performance. Direct is different from turning off the connection switch: the former sets the traffic route, while the latter stops the connection.

If you choose Config, tap Config at the bottom and confirm that the file you intend to use is enabled. The same word has two different functions here: Config in Global Routing is a mode, while Config at the bottom opens configuration file management. Choosing the mode without checking the file may apply old rules and produce a result that looks normal but is not what you expected.

You do not need to rewrite the entire ruleset before your first connection. Find a known domain rule in the current configuration and note its expected policy, then check the destination set by FINAL at the end. This gives you one flow with a known match and lets you check what happens to unmatched traffic. If the current configuration has overlapping rules, test it as-is first. For rule-order adjustments, see the settings reference.

03 / Connect

Select a server in Home and turn on the switch

Return to Home, find the server you want to use, and tap the dot beside its name. Confirm that the selection indicator is on the correct row. Viewing or editing an entry is different from selecting it as the current server. If the subscription contains several similar names, note the selected one so you can identify it in the test results later.

Turn on the connection switch at the top of Home. When connecting for the first time, iPhone or iPad may prompt you to add a system VPN configuration. Confirm that the request comes from Shadowrocket, then allow it and complete device verification as prompted. If you previously tapped Cancel, return to Home and try connecting again. If the device is managed by your organization or school and the system will not allow a configuration to be added, check with the device administrator about the restrictions.

Back in Home, first check whether the switch stays on. If it immediately turns off again, note the system prompt and go to Step 5 to check configuration permissions. Repeatedly toggling the switch will not complete an authorization that was denied. If the switch stays on, continue testing; you do not need to keep changing settings just to see a system status icon.

A switch that stays on means you can proceed to connectivity checks, but it does not confirm that the remote server is responding or that all sites are routed through a proxy. For example, sites accessible on your local network may still open in Direct mode. To make the next results comparable, stay on the same Wi-Fi or cellular network and do not change the server and Global Routing mode at the same time.

04 / Verify

Check the server and routing results with Connectivity Test

Run Connectivity Test in Home and find the row for the server you selected. A reported response time means that test received a response; a timeout or failure means it did not complete as expected. Do not treat the milliseconds as download speed or assume that one response means every site can be reached through that server.

Next, check actual site access. If you temporarily used Proxy to test the server, switch back to Config and make sure the Home connection switch is still on. Choose two familiar sites whose expected routes you can determine from the current rules: one expected to match PROXY and another expected to match DIRECT. Reload each in a browser rather than relying on a previously opened cached page. Keep the server and local network unchanged during testing.

Both sites opening does not mean that both routes are correct. If the app lets you view logs for the current connection, look up the entries by the time you visited and the target domain, then compare the displayed rule or policy. A webpage may also request images, sign-in content, or other subdomains, so several entries may appear. Check the entry for the current test target rather than attributing every request from the page to its main domain.

If the server responds and the target is accessible in Proxy, but results differ in Config, you have narrowed the issue to the configuration and rules; there is no need to import the subscription again. Conversely, if both Connectivity Test and actual proxy access fail, first check the device's local network, then check the server details. Record test results separately from access results to make it easier to assess whether later changes help.

05 / Troubleshoot

Troubleshoot the first step that fails

Start with the first action that did not complete. An empty list means you have not reached the server-testing stage. If the connection switch turns off as soon as you enable it, first check whether the device accepted the configuration. If only some sites have problems, check which rule actually matched. Change one thing at a time and retest the same target so you can identify what caused the result.

Subscription saved, but no servers appear in Home

Check that Type was set to Subscribe, then verify that you copied the entire link, especially its query parameters. Confirm that your current network is working, refresh the subscription, and expand the group to check the result. If the original link has expired, returns a sign-in page, or uses a format that cannot be parsed, check the link status and format through the service you already use. Before deleting the existing entry, make sure you still have valid details.

Switch turns off, or Connectivity Test keeps failing

If the switch turns off, first check whether the system VPN configuration was allowed and whether another VPN configuration is already in use. If the switch stays on but the test keeps failing, disconnect and use a browser to see whether the current network can open familiar sites. For Wi-Fi networks that require sign-in, complete the network login first. Then reconnect without changing the server and run the test again. To compare results, you can use another known-working network on the same device and test the same entry.

Server responds, but some sites use the wrong route

Check Global Routing again in Home, then confirm the active file in Config. Check the domain in the actual request, not just the domain first entered in the address bar; it may have changed after a redirect. If a broad rule matches first, later, more specific rules will not handle that request. If no earlier rule matches, check FINAL. Save a copy of the original configuration before changing rules, then retest the same domain.

If you still cannot identify the issue, consult the FAQ with the failed step, system prompt, current mode, and test results with sensitive information removed. If you suspect the issue involves DNS, On Demand, or logging, see the settings reference. There is no need to change these settings all at once during your first connection.