Shadowrocket Setup Guide
Using the iPhone / iPad interface, this guide walks you through adding a server, choosing a mode, connecting for the first time, and verifying access.
Add a server or import a subscription with Add Server
Open Shadowrocket and stay on Home, with the connection switch at the top turned off. Find and open Add Server in the SERVER section. Choose the right method for the details you have: enter the parameters manually if you have an address, port, and other server details; choose Subscribe if you have a subscription URL that retrieves a server list. Use one method for each set of details. Start with one item you can test; there’s no need to import multiple lists at once.
Add a server manually
After opening Add Server, tap Type and select the protocol shown in your server details. The selected protocol determines which fields appear. For example, with Shadowsocks, enter Host, Port, Password, and Method as provided. Enter the server hostname or address in Host—not the full subscription URL. Enter the port number in Port, and make sure Method matches your details. If the protocol shows different fields, fill them in according to the information provided for that protocol. If required details are missing, ask the provider rather than guessing values.
If your server details are provided as a QR code for adding a server, use Scan QR Code on this screen. After scanning, check the imported Type and address. Import from Cloud JSON, shown in the screenshot, is a separate import option. Use it only if you have details in the required format; it is not a substitute for Subscribe.
Import an existing subscription
In the Add Server Type list, choose Subscribe. Paste the full subscription URL from your own provider into the URL field, then save. Keep all query parameters when copying the URL; don’t remove anything after the question mark. Don’t share the URL in group chats or include it in troubleshooting screenshots. Return to Home and wait for the subscription to load. When the subscription group appears, expand it to check for available servers. Seeing a group name alone does not mean the server list has loaded.
Return to the SERVER list and tap the server you want to test. Make sure the selection indicator appears beside it. If server names are similar, check the group they belong to so you don’t mistake another server’s test result for this one. Adding a server only saves its details, and selecting it does not connect. Keep it selected for now; the next step is to decide how requests should be handled.
Choose a routing mode in Global Routing
Keep the server you just selected, then open Global Routing from Home. This setting controls how requests are handled; it does not change the selected server under SERVER. Before your first test, decide what you want to verify, then choose one of the three modes below.
- Config (Config)
- Rules in the current configuration determine whether requests use PROXY, go DIRECT, or follow another policy such as REJECT. Choose this when you know which configuration to use and want different destinations to follow different routes.
- Proxy (Proxy)
- Route proxied traffic through the selected server, rather than relying on individual rules to decide whether to use a proxy. If you’re mainly checking whether the server works, use this mode for a test, then switch back to Config to verify the rules.
- Direct (Direct)
- Access destinations without using a proxy server. Comparing this with Proxy can help determine whether the same destination is reachable directly on your current network. This does not delete any saved servers.
Before choosing Config, check which file is active
Open the Config tab at the bottom of the app and identify the configuration currently in use. Open its details to view sections such as General, Rule, and Hosts, as shown in the screenshot. For your first connection, just check the file and its rules; there’s no need to tap Add Rule or change URL Rewrite or HTTPS Decryption. If you have multiple files, note which one is active. Viewing a file’s details does not necessarily mean it is being used for routing.
To check how a request will be routed, look for a matching domain in Rule, then check whether an earlier rule matches first. Rules are evaluated in order, and the first match determines how the request is handled. If none match, the FINAL rule applies. For example, if the test destination matches DIRECT, that visit won’t tell you whether the selected server can forward traffic—even if the server is selected and the connection is on. Once you’ve chosen a mode, return to Home and confirm the displayed Global Routing mode matches your test objective.
Turn on the connection from Home
On Home, check these two items from the bottom up: the selection indicator under SERVER is still beside the server you want to test, and Global Routing is still set to the mode you chose. Then turn on the switch beside Not Connected at the top. The selection indicator in the server list is not a connection status: tapping a server selects it, while the switch at the top starts the system connection.
The first time you turn on the switch, iOS may ask whether Shadowrocket can add a VPN configuration. Confirm the prompt was triggered by the action you just took, then allow it and follow the system instructions to authenticate your device. If you tapped the wrong option or canceled, return to Home and check the switch before trying again. On a managed device where VPN configurations are blocked, ask your device administrator about the restriction. Don’t remove management configurations you don’t recognize.
After granting permission, return to Home and wait for the status to update. Confirm the switch stays on before testing. If the status has just changed, give it a moment; don’t repeatedly toggle the switch. Stay on the same Wi-Fi or cellular network during testing so a network change doesn’t look like a server or rules issue. If the switch turns off immediately, note any system prompt or app error, then check Troubleshooting. There’s no need to start by changing server details.
A switch that stays on means the connection is enabled on your device. It doesn’t guarantee that a particular website is reachable or prove that its request is being routed as expected. Continue to the next step to test the server and verify routing separately.
Verify with Connectivity Test and a real-world request
With the connection switch on, tap Connectivity Test on Home and wait for the result. Then check the selected server in the SERVER list. If results appear for multiple servers, record only the result for the server you selected; results for other servers don’t apply. A response means the test received a response on this network using this test method. A timeout only means no response arrived in time for this test—it doesn’t prove the server details are invalid.
Compare using the same destination
Keep the current mode, open a browser, and make a new request to a familiar website you know is still online. Don’t rely on a page that was already open; cached content may remain visible even when the network is unavailable. Note the current network, mode, selected server, and whether the new page loads. To compare proxy routing with a local network issue, keep everything else the same, switch Global Routing to Direct, and try the same destination again. Restore the original mode when you’re done. If both visits load, that alone doesn’t prove they followed the same route.
If the destination works in Proxy but not in Config, check the current configuration’s Rule section to see whether an earlier rule matches the domain, then check the final rule. If REJECT is the matching rule, the failure may be expected. If the request matches DIRECT, first check whether direct access works. Conversely, if the test gets a response but only some websites fail to load, don’t immediately recreate the subscription. First determine whether the issue affects one destination or multiple destinations that previously worked.
A successful first check means the switch stays on, you know which server you tested, and the access result matches the selected mode or the expected rules. If you switched to Proxy just to test the server, switch back to your usual mode afterward and retest a destination with a clear matching rule.
Troubleshoot common connection issues in Settings
First identify where the issue occurs: the server list is empty, the connection switch turns off, the test gets no response, or access fails for a particular destination. Each symptom calls for a different starting point. Keep your existing subscription and configuration while troubleshooting. Change one thing at a time, and retest with the same network, server, and destination whenever possible so you can tell what affected the result.
Subscription saved, but the server list is empty
Expand the subscription group and confirm that it contains no items. If the app reports a loading error, open the subscription entry and check that Type is set to Subscribe, the URL is complete, and the pasted text has no extra spaces or line breaks. Then use a regular browser to confirm your network is online. If public Wi-Fi requires sign-in, complete its web login first and try again. If a URL that worked for a long time keeps failing, ask your provider whether it has changed or expired. Don’t paste the subscription URL into a public diagnostic site; it may contain access credentials.
The switch won’t stay on, or the connection starts when the network changes
If the switch turns off immediately, check whether you completed the system’s VPN configuration authorization. Then check whether another VPN connection is already active or set to reconnect automatically. Pause only connections whose purpose you know, and leave work or school configurations in place. If the connection behaves differently after switching Wi-Fi networks, open Settings and check whether On Demand has network-triggered conditions. For a manual retest, stay on one network. Before changing a condition, note its original setting so you can restore it.
Test times out, or gets a response but access still fails
Check Test Method in Settings, and use the same method when comparing results. If the test keeps timing out, first check the selected server, protocol, address, and port, then compare using another local network you know works. If the test gets a response but requests still fail, check Global Routing and the rules in the active configuration before changing DNS, TCP, and UDP all at once. To document the issue, check Diagnostics and note when it happened, the network, mode, and error message. Before sharing, redact subscription URLs, passwords, and full server addresses.
Once you’ve found the check that matches the issue, repeat the verification steps. For more on On Demand triggers, differences between Test Method options, or how DNS works, see the Settings reference. You don’t need to change every setting just to connect for the first time.