Official Guide · First Connection

Shadowrocket Setup Guide

This iPhone and iPad guide starts with adding existing connection details, then walks you through connecting for the first time and checking whether routing works as expected.

Prepare your connection details

Add a server with Add Server or choose Subscribe

Open Shadowrocket and go to Home. First, identify which type of details you have: a single server entry lists a protocol, server address, port, and credentials; a subscription link, provided by a service provider, syncs a group of servers. A subscription link is not a server address, and you cannot use part of the link as a password. Enter one type of information; you do not need to complete both methods during initial setup.

Enter a single server manually

Tap the plus sign in the top-right corner of Home to open Add Server. Under Type, select the protocol shown in your details, such as Shadowsocks or Trojan. Fields vary by protocol, so choose the right type before entering details to avoid putting credentials in the wrong fields. Enter the server address, port, and required authentication parameters exactly as provided. If your details include transport or TLS settings, check those against the original values too. Do not fill in unspecified values just to complete the form.

Keep the provider's label if one was supplied, or use a name you recognize, such as “First test.” Do not put your password in the label. Before saving, check that the address has no extra spaces and that the port is in the port field, not the address field. Tap Done to save, return to the SERVER list on Home, and select the entry you just added.

Import an existing subscription

On Home, tap the plus sign, set Type to Subscribe, paste the full subscription URL into the link field, and tap Done. Keep all existing query parameters when copying; do not change any characters or use the provider's login page URL as the subscription link. Wait for the list to load, then return to SERVER, expand the relevant group, and select a server. Seeing the group means the subscription entry was saved; wait until it contains servers and one is selected before testing the connection.

Once a server is selected in SERVER, do not turn on the switch yet. Next, choose Global Routing to decide which requests will use the selected server when you connect.

Choose how traffic is routed

Choose a routing mode in Global Routing

On Home, tap Global Routing and check the selected option. This controls how traffic is handled; the server you want to use is selected separately in SERVER. Changing the mode does not change the server, and changing the server does not change the active rules. After choosing a mode, return to Home and confirm the displayed setting.

Config
Handle requests according to the currently selected configuration. Rules are evaluated in order, and the matching rule determines the policy. A request may use PROXY, use DIRECT, or be blocked by REJECT. Choose this option for everyday use with a working configuration. If you are unsure which configuration is active, check the selected file on the Config page first.
Proxy
Route traffic handled by the client through the proxy, without checking which policy the current configuration assigns to each test destination. If you already have a server but are unfamiliar with the rules, try this option to test everyday access. When you are done, switch back to Config if that is what you need.
Direct
Send requests handled by the client without using the selected proxy server. Use this to compare whether the same destination is accessible directly on your current network. A successful request in Direct mode does not prove that the server works, even if the connection switch appears active.

To check whether a server works, start with Proxy and note the website or app you want to test. To verify existing rules, start with Config and prepare one destination expected to use the proxy and another expected to connect directly. For a fair comparison, keep the server and network unchanged and switch only the mode. If the same website behaves differently, you can investigate routing policy first instead of changing server details at the same time.

Connect

Turn on the Home switch and allow the VPN configuration

Return to Home. Confirm that SERVER shows the entry you want to test and that Global Routing displays the expected mode. Then turn on the switch next to Not Connected. The first time you connect, the system may ask Shadowrocket to add a VPN configuration. Check the app name in the prompt and make sure the request was triggered by your action. Tap Allow, then authenticate as prompted. The system prompt's language depends on your device settings.

After granting permission, return to Home and wait for the status to change to Connected. Check that the switch does not quickly turn off again. This status means the VPN is connected on your device; it does not confirm that the server passed a test or that every app uses the same policy. Keep the current settings and make a new access request in the next step to check how traffic is actually handled.

If you tapped Don't Allow last time, return to Home and try the switch again. If no prompt appears and the switch immediately turns off, check the VPN status in your device's Settings and see whether another VPN is using the connection. On a work- or school-managed device, do not remove management settings. If the system reports a device restriction, ask your administrator which settings are permitted.

For your first test, use the manual switch and leave On Demand unchanged. If the device already has on-demand connection rules, note their settings. If the connection turns off and then comes back on automatically, check whether an on-demand rule triggered it instead of treating the automatic reconnection as a failed manual connection. Observe one switch state and one destination at a time to make the problem easier to isolate.

Test and compare

Test the connection with Connectivity Test and real-world access

After connecting, tap Connectivity Test on Home and check whether the selected server returns a result. A latency value means the entry responded under the conditions of that test; it does not mean every website or app will be accessible. A timeout only means the test did not get a response within the expected time. Note the server name and result, but do not change your configuration based on the number alone.

Next, open a website or app you use regularly and make a new request, such as refreshing a page with live content. Do not rely on a page that was already open: the browser or app may still be showing cached content. If an app is not working, leave the current page and open it again to confirm that the failure affects a new request, not an old error message still on screen.

With Proxy selected, first check whether the same destination loads, then review the Connectivity Test result. If both work, you have evidence that the selected server was usable for this test. If you plan to switch back to Config, try the same destination again after changing modes. If it works with Proxy but fails with Config, check the rules first rather than treating the two results as one connection failure.

With Config selected, test the two destinations you prepared: one that the current rules should send to PROXY and one that should use DIRECT. First check that the domain in each request matches the relevant rule, then review the access results. A direct destination loading successfully only confirms that the request was accessible; it does not prove that a proxy rule matched. To compare direct access, temporarily select Direct, keep the network and destination unchanged, then restore the mode you plan to use.

Find where it failed

Troubleshoot first-connection problems by symptom

Identify the first step that failed: are there no selectable entries under SERVER, does the switch fail to stay on, or is the connection active but the destination won't load? Each issue needs a different fix. Keep the test conditions consistent: use the same device, server, and destination. Change one thing at a time, then repeat the step that failed.

Subscription saved, but no servers appear

Return to the Subscribe entry and check the link: was it pasted in full, did it include an accidental space, or is it actually a website login URL? Make sure the device is online, then try loading it again. If the provider changed the link or it returns an access error, ask the original provider to confirm the current URL. Switching Global Routing or reconnecting the VPN will not add servers if the list has no available entries.

The switch will not turn on or turns off immediately

First, confirm that the VPN configuration was allowed, as described in the previous step. Then check that a server is selected under SERVER. If another VPN is running on the device, disconnect the one you control and try the Home switch again. Note whether the system prompt appears during authorization or after you turn on the switch: check system permissions in the first case, and configuration and network settings in the second. If needed, see Troubleshooting. There is no need to delete your existing subscription or reinstall the app first.

Connected, but the server test keeps timing out

First, make sure the device's network connection works. If ordinary pages will not load either, turn off Shadowrocket and check whether Wi-Fi requires a sign-in or cellular data is available. Repeat the same test once the network is working. If the basic connection is fine, check the entry's Type, address, port, credentials, and transport settings. Also check the date, time, and time zone in your device's Settings. To compare another existing server, keep the network and test destination the same and change only the selected entry in SERVER.

Most destinations work, but a few websites or apps fail

With Config selected, first confirm which file is active, then check the rules for the destination from top to bottom. Once an earlier rule matches, later rules do not handle that request. If none of the earlier rules match, check where FINAL points. If you only know the app name, find out which domain it actually accesses; one app may load its sign-in page, images, and data from different domains. For DNS issues, problems after switching networks, or iPad-specific issues, continue with the relevant symptoms in the Troubleshooting Guide. For DNS issues, go directly to the DNS section.

Once the issue is resolved, switch any temporary Proxy or Direct mode back to the one you need for everyday use, then test access again. Keep the configuration and server selection that passed the test; there is no need to change other options as well.