Official Guide · First Connection

Shadowrocket Setup Guide

First, make sure the existing server appears on Home. Then choose a Global Routing mode, connect, and verify the result. Follow these five steps to distinguish between missing imported details, a connection that has not been established, and rules that are not handling traffic as expected.

01 Import details

Add a server or import a subscription in Add Server

Open Shadowrocket, find the SERVER group on Home, and tap Add Server. First identify the details you have: a single server usually comes with a protocol, host, port, and authentication parameters; a subscription is a link the app uses to retrieve a server list. You can start with Add Server for either type, but do not enter a subscription link as the Host for a single server.

Enter details for a single server

Tap Type, select the protocol specified by your service provider, and fill in the fields shown for that protocol. In the Shadowsocks form shown in the screenshot, enter the server address in Host, the port in Port, and the password and provider-specified method in Password and Method. The fields may differ when you switch Type, so do not reuse parameters from another protocol. Before saving, check for extra spaces or line breaks, and do not remove symbols from the password. After saving, return to Home and confirm that the entry appears under SERVER.

Load a list with Subscribe

If you have a subscription link, select Subscribe under Type in Add Server, paste the complete link into the link field for that type, and save. Parameters after the question mark are part of the address, so do not truncate or reconstruct the link. Return to Home and wait for the list to load, then check SERVER: a group name with no selectable servers does not mean the import is complete. Check that the link was copied in full, then follow the troubleshooting steps below. There is no need to create multiple identical groups.

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

You only need to add a server manually or import a subscription; completing either one is enough. Once an entry is selectable, note which one you plan to use, but do not test every entry in turn. A successful import only confirms that the details were saved; verify the server connection in the following steps.

02 Routing settings

Choose a routing mode in Global Routing

Return to Home, tap Global Routing, and choose Config, Proxy, or Direct based on what you want to test. The mode determines how traffic is handled; the entry selected under SERVER determines which server is used when traffic goes through a proxy. Selecting one does not configure the other.

  • Config: Match traffic against rules in the active configuration. Choose this mode if you have a suitable configuration and want different destinations handled by different policies. One destination going through a proxy does not mean all destinations do.
  • Proxy: Send intercepted traffic through the selected proxy. Use this mode for a brief comparison if you want to check access through that server without considering rules.
  • Direct: Handle traffic without a proxy. Use it to compare whether the current network can access the same destination directly. It changes how traffic is handled; it is not the same as turning off the connection switch at the top of Home.

If you choose Config, check the active configuration under Config at the bottom of the app. Config on Home is a mode; Config at the bottom is where configuration files are managed. The Rule shown in the screenshot on the right is part of the configuration file editor, not a Global Routing mode menu. For a first connection, just confirm that the expected file is active. You do not need to add temporary rules or enable HTTPS Decryption to complete the test.

Shadowrocket Config editor showing the General, Rule, Hosts, URL Rewrite, and HTTPS Decryption sections
Config: check the rules in the Rule section of the configuration file.

To check whether a server works, run a brief test in Proxy first. To verify routing rules, switch back to Config and test the same destination again. Note the selected mode, then return to Home and connect. See the terminology guide for rule keywords and policy definitions.

03 Establish a connection

Select a server on Home and turn on the switch

In the SERVER group on Home, select the server you want to test and make sure the selection marker has moved to the intended entry. If there are many servers, check the group first, then the name. Seeing an entry in the list does not mean it is selected. If you just updated a subscription, check the selection again rather than relying on a name noted before the update.

Tap the switch next to Not Connected at the top of Home. If the system asks to add a VPN configuration the first time you connect, confirm that the request is from Shadowrocket and follow the system prompts. Complete the confirmation in the system interface; you do not need to enter device unlock details in the server form. When finished, return to Home and wait for the switch status to stabilize before continuing. Do not tap the switch repeatedly while the system prompt is open.

If the switch stays on, the connection has started on the device. This does not yet confirm that the selected server works or that a particular site uses the proxy. If the switch turns off immediately, check system authorization or device restrictions first. If it stays on but access fails, leave the settings as they are and use the next step to distinguish a connection issue from an access issue.

Shadowrocket Home screen with a Not Connected switch at the top and Global Routing, Connectivity Test, and SERVER sections below
Home: select an entry under SERVER before using the switch at the top.

For the first test, keep the device on the same Wi-Fi or cellular network. If you switch networks immediately after connecting, the new network can affect the test, making it harder to determine whether the selected server caused the failure.

04 Verify the result

Verify with Connectivity Test and real-world access

Keep the server and mode unchanged, tap Connectivity Test on Home, and check the destination after the test returns a result. A response means the probe returned a result under the current conditions; a timeout means it did not finish within the waiting period. Results depend on the probe method, destination, and current network. A single timing result cannot establish that every app is usable, and it is not a reason to delete a server immediately.

Next, open the site or app you intend to use and perform an action that reloads content, such as refreshing a page or opening one that has not loaded before. Content already on screen may be cached and should not be treated as evidence of the current connection. Keep the same destination during testing: first check whether it loads, then check whether it uses the expected route. Record these as separate questions.

In Config mode, a page loading does not prove that it went through a proxy; the matching rule may specify a direct connection. To check routing, first confirm that the actual request destination matches the destination expected by the configuration, then check the applicable rule and policy. For example, a rule may match one domain while the page also requests resources from other domains. Those requests need to be matched separately, so the main page result does not tell you how the entire page was handled.

If the results differ, compare them using the same network, server, and destination: record the result in Config, then temporarily select Proxy and try again. If access works only in Proxy, check the active configuration and rules under Config first. To check whether the destination can be reached directly on the current network, try Direct separately. After comparing, restore the mode you intend to use and confirm the settings on Home. If both the test and actual access behave as expected, the first connection is complete.

05 Troubleshooting

Check import, connection, and rules based on the failure

No selectable entries under SERVER

For a subscription, return to the original entry, check that Type is set to Subscribe and the link is complete, then try loading it again. If nothing changes, ask your service provider whether the link is still valid and whether its contents can be read by Shadowrocket. For a manually added server, check Type, Host, Port, and the authentication fields required by that type, then save and confirm the entry appears on Home. Do not change the routing mode until the list is available.

The connection switch will not stay on

First check whether the system's VPN configuration request was completed, then return to Home and retry once. If the system did not allow the configuration to be added, or the device is managed by an organization, check device restrictions or contact the administrator. Do not delete another app's VPN configuration or remove device management settings to connect. If another connection is already running on the device, check whether it is managed by the system or an organizational policy.

The switch is on, but the test times out

Keep the mode unchanged. First check that the device can access the network normally, then confirm that the server details are still valid. If you already have another working server, compare it on the same network; you can also keep the original server and try a different network. Do not change the server, network, and mode all at once, or you will not know which change made a difference.

The test returns a result, but some destinations fail

Use the fourth step to compare Config, Proxy, and Direct. If the cause is unclear, check Test Method under Settings and, if needed, view Diagnostics. Note the failing stage and any visible message. Results from different Test Method settings should not be compared directly; keep the same method when retesting so you can tell whether the settings or the test criteria changed. If the switch changes after switching networks, check whether On Demand is configured.

Shadowrocket Settings screen showing Test Method, On Demand, Diagnostics, Proxy, TCP, and UDP options
Settings: check Test Method and view Diagnostics if needed.

When asking for help, include four details: which screen you are stuck on, the Global Routing mode, whether the switch stays on, and the results from Connectivity Test and actual access. Hide server addresses, passwords, and complete subscription links before sharing records. See Frequently Asked Questions for more troubleshooting, or the getting the app guide for store availability, purchases, and restoring on a new device.