01 Settings Baseline
How Settings and Global Routing Work
Before troubleshooting, check the connection status, selected server, and Global Routing on Home, then confirm the active configuration file in Config. Settings options, entries in a configuration file, and system network permissions operate at different levels. Editing a file does not mean it is in use; enabling a toggle does not confirm that dependent servers, DNS resolution, and rules are working. First identify which layer changed. This is more reliable than resetting every setting to a generic value.
Record the Starting State; Don't Assume Defaults
Run the same test on the same device and network, using the same target. Record whether it connects, the current mode, and the original setting. For switches, note on or off; for lists, note the selected item. If a field is blank, record it as blank rather than copying a system value or someone else's example. Imported configurations, synced data, and system permissions can all affect the state shown when you reopen the app. If you cannot establish a reliable initial value, use the last working value as your rollback baseline. Don't reinstall the app to guess.
Start with minimal changes only when taking over a new configuration. First, use an existing server to establish a manual connection and confirm that the target is reachable; then switch to the mode you plan to use day to day. Keep a copy of the working configuration and edit the copy, so temporary troubleshooting changes aren't lost when a remote configuration updates. If several settings have changed, work through them in order. Revert one at a time and retest the original target; don't change rules and migrate servers at the same time.
Understand the Three Global Routing Modes
| Interface option | How traffic is handled | Useful for checking |
|---|---|---|
| Config | Connections are handled according to the rules and policies in the active configuration. | Whether a domain should use a proxy, connect directly, or be rejected. |
| Proxy | Routes traffic handled by Shadowrocket through the proxy instead of testing everyday rule-based routing one rule at a time. | Whether the current proxy route can reach a test target. |
| Direct | Routes traffic handled by Shadowrocket directly. | Provides a direct-connection comparison; it is not the same as disconnecting. |
For example, if a site loads under Proxy but not under Config, check the rule that actually matched or the selected policy before changing servers. If it fails only under Direct, that doesn't mean the configuration is broken: direct and proxy routes may have different network conditions. To compare modes, end the original request and start a new one. Pages already open in a browser and long-lived connections may not reflect a mode change right away. Restore the original mode after testing so a temporary global choice doesn't affect other apps. For more on each mode, see Global Routing Modes Explained.
Treat App Access and Configuration Data Separately
Get Shadowrocket for iPhone and iPad from the App Store. In the US, it costs $2.99 as a one-time purchase; check the App Store listing for system requirements. The Mac versions for Apple silicon and Intel, plus the Windows, Android, and Linux versions, are free; get installers only from this site at /dl/. Choose your device on the Download Shadowrocket page, and verify the App Store developer is Shadow Launch Technology Limited, along with the official icon and app ID 932747118. A one-time app purchase is not a service plan: get subscriptions from your own provider. This site does not provide, sell, or recommend servers or subscriptions. This guide assumes you already have your own subscription or server details; you don't need to find another service to adjust settings.
When a new problem appears, restore the last working value and repeat the same steps on the same network. If it still fails, check whether the network or server has changed. Don't assume that one event caused another just because it happened first.
02 Name Resolution
DNS: System Resolution, Custom Servers, and Rules
When the network is working, use the current resolution method as your baseline. If you don't have a specific need to change DNS, there's no reason to change servers just for the sake of it. DNS resolves names to addresses needed for network connections; successful resolution doesn't guarantee the connection will succeed. A page can also fail because of routing, the server connection, or the app's handshake. Accessing an IP address directly is not equivalent to visiting the original site: the server may return different content based on the hostname. Don't use that as your only DNS test.
Choose a Resolution Method for Your Network
System DNS is a good starting point when you don't need to override resolution settings. Home, office, and mobile networks may use different DNS environments. If an internal name resolves only on a particular network, first check whether that network provides its own DNS service. If your device uses a network configuration from your organization, confirm what you are allowed to change. Don't send internal domains to an unfamiliar public DNS endpoint, or use public DNS results to conclude that an internal service is unavailable.
Consider custom DNS only if you have confirmed that you need a specific resolver and have a working address. Follow the current configuration format; a web address you open in a browser isn't necessarily a standard DNS server address, and an example domain isn't a server. For DNS over HTTPS, use a complete HTTPS endpoint you know is available, including any required path. The endpoint itself may depend on DNS resolution and network access. If all domains fail after you enter it, restore the previous DNS setting first, then check whether the endpoint is reachable on the current network. Using HTTPS for DNS does not determine whether application traffic uses DIRECT or PROXY.
Check for Overrides in Config
Open Config and confirm which file is active. Check whether it includes dns-server or domain-specific DNS settings. If the app's selection differs from the file, first make sure that file is actually in use. Don't assume every request reads only from Settings. Save local changes to the copy you intend to use, return to Home, and verify with a new request. For endpoint formats and how they relate to dns-server, see System DNS, Custom DNS, and DNS over HTTPS.
The following Shadowrocket .conf rules snippet illustrates rule order. It is not a complete configuration or a DNS setting. example.com is an example domain; use your own test target and existing policies when editing a real configuration.
[Rule]
DOMAIN-SUFFIX,example.com,PROXY
GEOIP,CN,DIRECT
FINAL,PROXY
Here, DOMAIN-SUFFIX matches a domain suffix, GEOIP matches the destination IP's geographic location, and FINAL specifies the fallback policy when none of the preceding rules match. Domain rules and IP-based rules rely on different information. When you access a domain, the resolved address may be needed to evaluate a later IP-based rule. The order above puts a specific domain exception first, rather than relying on a broad location-based rule to explain how that domain is handled. In a real configuration, put more specific exceptions before broader rules, and don't add rules after FINAL if you expect them to take priority.
Roll Back Based on the Scope of the Failure
If only one domain fails, compare it with another known-working domain, then check its actual hostname, DNS resolution, and rules. A webpage may load resources from other domains too; if the homepage loads but images don't, checking only the main domain in the address bar isn't enough. If the problem starts after switching networks, return to the original network and retest with the same configuration. If it still works there, focus on DNS conditions or authentication on the new network. If every domain fails after a DNS change, restore the previous value and start a new request. Where possible, avoid interference from app-specific DNS settings, old connections, or caches. If you can't tell whether a cache has expired, test a known-working domain you haven't opened before and record it separately from the original target.
03 Connection Timing
On Demand: When Connections Start and Stop
Verify a manual connection before setting up On Demand. It controls when the system attempts to establish a VPN connection based on conditions; it doesn't route traffic for a particular site or make an unreachable server work. Global Routing determines how traffic is handled after the connection is active. They are not interchangeable switches. If you change both while troubleshooting, a background reconnect can make it hard to tell which mode a request used.
Verify Manual Connection First
If you haven't verified a manual connection, leave On Demand off for now and turn the connection on manually from Home. When the system first prompts you to add a VPN configuration, make sure Shadowrocket initiated the request, then authorize it on your device. Use a configured server to visit a known-working target, then disconnect and confirm the device returns to the expected state. Without system authorization, a working server, or a successful manual connection, On Demand will only retry; it can't replace these steps.
Find On Demand in Settings and note its current status and any conditions shown. If the app and system let you set conditions by network type or name, start with one situation you actually need rather than covering every network at once. For example, if you want to test connections on your usual Wi-Fi network, begin there. If you've never used On Demand and normally connect manually when needed, you can leave it off. If your device's VPN is managed by an organization, check its requirements before making changes; don't remove a system configuration to fix a trigger issue.
Test One Condition That Should Connect and One That Shouldn't
After setting the conditions, write down two expectations: which network should trigger a reconnect, and which should leave the connection off. Test each condition shown in the interface. For example, start a new network request on a matching network, check the status on Home, then repeat the same steps on a non-matching network. After switching networks, wait until the device is fully connected before testing. This avoids mistaking a brief Wi-Fi-to-mobile-data transition failure for a trigger failure. After locking the screen or returning from the background, check the current status before testing a new request rather than relying on the previous screen.
An existing connection and a trigger under new conditions are two different things. If the status still says connected, determine whether the original connection remained active or was re-established after disconnecting. If the interface doesn't make that clear, record the time and status before and after the network change, then compare the events in Log. If you're testing on a public network that requires authentication, complete network sign-in first. Don't treat a connection failure during authentication as an On Demand condition failure.
Fix Repeated Reconnects or Missing Triggers
If the connection comes back after you turn it off manually, first check whether the current environment still meets the On Demand conditions. For a proper disconnect test, temporarily turn off On Demand, disconnect on Home, and see whether the status stays disconnected. If it still connects unexpectedly, check which VPN configuration the system is using and whether device management requires it; don't remove other configurations. If On Demand never triggers, first check system permissions and whether the current network matches the conditions, then verify that a manual connection works on that same network. Attribute the issue to trigger settings only if manual connection works but the condition test fails. When you're done, restore the conditions you actually need; don't leave broad test conditions enabled.
On Demandanswers “When should a connection be attempted?”Global Routinganswers “How should requests be handled after the connection takes over?” Test each separately before using them together.
04 Connectivity Tests
Ping and Connectivity Test: How to Read the Results
A test result describes one attempt on the current network using the current method. First check which entry is selected under SERVER on Home, then use Connectivity Test for comparison. Ping options are for testing, not everyday traffic routing. A low result in milliseconds doesn't guarantee a faster webpage load. A page may need to resolve several domains, establish encrypted connections, and fetch resources, and those steps may not be included in the measurement.
Know What You're Measuring and How
If the current interface lets you choose a test method or address, note the existing selection and run a set of tests without changing it first. A transport-layer connection to a server address mainly checks whether that address and port respond. A test URL may use the proxy route to reach a different network service. The two methods measure different things, and one result can't validate the other. Don't assume from the name Ping that the app necessarily sends an ICMP echo request; use the method shown in the interface.
Use a reachable test target that you're authorized to access. For a URL-based test, choose a stable resource rather than a page that requires sign-in, redirects frequently, or returns a large amount of content. Don't include account credentials in the URL. Keep the app's current target and timeout unless the target itself is unreachable or isn't what you need to test. When comparing servers, don't change the URL at the same time, or you won't know whether the difference came from the server or the target.
Repeat Tests Under the Same Conditions
Test the current entry on a stable network, wait a moment, then repeat and note whether failures recur. Next, keep the test method and target the same while changing just one comparison condition—for example, switch from Wi-Fi to mobile data, or test another server you already have configured on the same network. After switching networks, wait until the connection is established before drawing conclusions. If only the first test is slow and later tests are similar, don't change settings based on that first result alone. If results repeatedly alternate between success and timeout, check whether the pattern relates to a particular network or time of day.
If the interface offers a timeout setting, leave it as configured at first. A timeout that's too short may count a temporary delay as a failure; one that's too long makes failures take longer to confirm. If you need to test a borderline case, adjust the timeout only slightly and record results before and after. A timeout sets a decision threshold; it doesn't make connections faster. If repeated attempts get no response, check the network, target, and server rather than continually increasing the wait. If the app doesn't show a timeout option, don't edit unfamiliar configuration fields to reproduce a particular value.
Compare Test Results with Real-World Access
If a test fails but normal access works, first check the test target, method, or how the current network handles test requests. Don't assume the whole proxy is unavailable. If the test succeeds but a particular service fails, keep the server unchanged and check that service's DNS and Global Routing. Also check whether some webpage requests are failing. If both fail, troubleshoot in this order: manual connection, server address and port, then network changes. A test isn't a substitute for logs: the test shows whether there was a response, while logs help identify where a request stopped.
When reporting a server connectivity issue to your provider, include the test method, network type, time of the issue, and whether you can reproduce it. A single millisecond reading or a screenshot showing only the result usually isn't enough to locate the problem.
05 Troubleshooting
Log: Trace a Request to Find Where It Failed
Keep the current logging settings where possible. To investigate a specific problem, temporarily increase the logging detail only while reproducing it. If the interface offers more detailed logging, restore the original setting after collecting what you need. Logs help answer “Which step failed first?”—not how serious a problem is based on the number of error messages. One failure can cause multiple retries, and later errors may not be the root cause.
Capture One Reproducible Attempt
On Home, note the connection status, Global Routing, and selected server. Note the time on your device, then perform one reproducible action in the same app. Choose a request that won't load a large number of extra resources, and close unrelated foreground activity so the log is easier to read. Open Log, narrow the view by time, and confirm that the domain and action match. Before discarding older records, check whether you need them for comparison. Clearing logs won't fix a connection, and deleting old records may remove a clue that appeared only once.
Check entries from around the same time and follow the request in order: whether the connection was handled by Shadowrocket, whether DNS resolution was needed, whether a rule or policy was involved, and then the result of connecting to the destination or server. Some layers may not produce visible entries; a missing field isn't proof of a fault. If you can't find the request, check whether the test reused an existing connection, whether the app is using cached data, and whether the VPN is actually connected. If needed, repeat the test with another target you can control that you haven't accessed before.
Narrow Down the Issue from the First Anomaly
If the first anomaly involves DNS, test a known-working domain on the same network and check DNS and the active configuration. If a target is assigned to an unexpected policy, first verify its actual hostname. A redirected webpage, static resource, or app API may use a different domain; one rule for the main domain can't explain every connection. If the log shows REJECT, check whether the configuration intentionally rejects that connection before changing a rule for a specific target.
If the expected policy matched but the upstream connection failed, compare the server address, port, and parameters supplied by your provider. If the issue appears only after switching networks, keep a set of records from before and after the switch. If it appears only when On Demand is enabled, stop automatic triggers and compare with a manual connection. Whenever you find a difference at any layer, rerun the original test. Don't skip the first anomaly just because another error appears later.
Share Only the Diagnostic Details Needed
When reporting a problem, first explain what you did, what you expected, and what happened. Then include a small number of records from the relevant time period. Before sending them, remove subscription URLs and query parameters, account details, passwords, keys, full server identifiers, internal domains, and personal browsing history. Check screenshots for status bar details, app lists, and clipboard notifications. If you can describe something in text, there's no need to send a full-screen image. Keep the timeline, mode, rule type, and error category needed to diagnose the issue; these are usually more useful than the original addresses.
If the behavior in the log isn't reliably reproducible, note what triggered it—for example, returning from the lock screen, switching Wi-Fi networks, or connecting from a Widget. Don't leave detailed logging on indefinitely while waiting for the problem to happen again. For common issues such as connection failures, unapplied configurations, or rule matching, start with the troubleshooting links in FAQ, then add what was different about this test.
06 System Interface
Widget: Add It, Check Its Status, and Verify Actions
A Widget is a shortcut in the system interface, not a separate connection configuration. First make sure Home in the app shows the correct status and can connect manually; then add a widget. The status, shortcuts, or links available depend on your device's widget gallery and the style you choose. Don't assume your widget can perform an action just because a different device shows a button for it.
Add a Widget from the System Gallery and Choose a Suitable Style
Enter edit mode on the system Home Screen, open the widget gallery, and search for Shadowrocket. If several styles are available, preview their information and size before choosing one. If you only need to check status, there's no need to pick a larger widget for controls you rarely use. After adding it, open Shadowrocket to verify the selected server, connection status, and VPN authorization, then compare the widget on the Home Screen. You can keep using Home in the app without a widget; no extra network options are needed to set one up.
If Settings includes options for Widget, read their descriptions and decide whether they apply to display or actions. Keep the original values first, confirm you added the style you chose, and then change only one display option at a time. The system and app together determine the widget's appearance. If an app setting conflicts with the size or placement available in the system gallery, use the system's options. Even when app data is restored across devices, check each device's Home Screen widget placement and style separately.
Check the Displayed Status; Don't Treat Refreshing as Connecting
Connect or disconnect manually once on Home. When the in-app status is clear, return to the Home Screen and see whether the widget updates. The system schedules widget updates, so an old display doesn't necessarily mean the connection is still in its previous state. If the widget offers an action, use it once and return to Home to check the result; don't tap repeatedly. If it only opens the app, continue there. When system VPN permission is needed for the first time, authorize it in the app—repeated widget taps won't bypass the prompt.
If the widget shows disconnected while the app shows connected, cross-check the in-app status and a new request to the same target. If the in-app status also changes, check whether On Demand responded to a network change or whether the change happened while the device was reconnecting. For repeated comparisons, keep the network unchanged and temporarily turn off conditions that could interfere with the test; restore them afterward. Only narrow the issue to widget updates or configuration if the app works normally but the widget continues to show an old status.
If the Widget Is Missing or Its Actions Differ
If Shadowrocket doesn't appear in the system widget gallery, first confirm that the app opens on this device and that you're adding a widget from the intended system interface. The available widget types may differ across system surfaces; don't expect the same widget to appear in the Lock Screen, Home Screen, and every other location. If it was available before but disappeared, reopen the app and check the gallery again. If only an existing widget is malfunctioning, remove and add it again; there's no need to delete the app or change server details.
If a widget displays server labels, status, or traffic information where other people can see it, check whether anything should be hidden. If needed, choose a less detailed style or remove the widget. A widget isn't a diagnostic tool. If it doesn't match Home, note when and how you acted, then reproduce the issue using the Log troubleshooting steps. For everyday use, clearly distinguishing the widget's display from the actual connection matters more than enabling multiple shortcuts.
07 Data Scope
iCloud Sync: Compare Devices and Resolve Conflicts
Check each device individually; don't treat sync as a complete backup. Before enabling it, check whether the system allows Shadowrocket to use iCloud, then review the sync options in the app. The actual sync scope is whatever the interface provides. Seeing a configuration file on a second device doesn't mean that server lists, passwords, subscriptions, app settings, and system VPN permissions have all migrated. The first time you connect on the receiving device, follow its prompts to authorize access and confirm which configuration is in use.
Identify the Device with the Correct Data
When migrating, start with a device that works. Check which configuration is active, whether the subscription or server list is as expected, and whether any local-only changes have been saved elsewhere. Use the app's current export option to keep a recognizable copy of any data you need. Export only the items you've checked and store them somewhere you control. Don't transfer files containing server credentials, subscription URLs, or other sensitive information through public folders or group chats. Keep test configurations free of personal information where possible.
If you use only one device or intentionally keep different configurations on different devices, you can leave sync as it is; you don't need to turn it on just for testing. If you want to share a particular type of data between two devices, confirm that both use the same iCloud account you intend to sync with and that the app is allowed to use the relevant features. Keep the original data on your primary device, then review existing content on the receiving device before following the prompts. If asked to merge, replace, or choose a source to restore from, read what may be affected before continuing. Don't use a device that already works as a test device.
Verify Synced Content, Not Just File Names
Use an easy-to-recognize test file or note with no credentials. Save it on the primary device, wait until both devices have network access, then check the receiving device. Verify the same item in the same data category rather than looking only for a matching name. If needed, open the file and compare a rule with no sensitive content to confirm the test change arrived. After the file appears, check in Config whether it is the active configuration. A synced file and an active configuration are two different outcomes.
If the interface offers Import from Cloud JSON, treat it as a one-time import with a specific source, not ongoing device-to-device sync. Before importing, confirm that the file is yours, that you can identify its contents and source, and whether the interface will replace existing data. If you need ongoing sync for a particular type of data, don't repeatedly import files to force an update. The more entries share a name, the harder it is to tell which action produced the active configuration.
Sync Delays, Duplicates, and Conflicts
If the two devices show different versions, stop editing the same file on both. Decide which data to keep and make a copy, then check both devices' networks, accounts, permissions, and the app's sync scope. If one device can see a file and the other can't, it may not be lost; the devices may be looking at different data categories, or the receiving device may not have fetched the update yet. Don't create more changes by repeatedly toggling sync, signing out, or deleting entries in bulk. A deletion may affect the same data on other devices.
If each device has changes you need to keep, name copies of the configurations by source and compare them manually in a controlled copy. Then continue using one clearly identified version. After restoring it, test a manual connection on the receiving device and check rules and DNS before restoring On Demand or widget actions. Confirm sync using both the content and its behavior. An enabled switch alone doesn't mean the migration is complete.
08 Local Access
Proxy Ports: Listen Address, Port, and Scope
If you don't need local proxy access, keep the current settings and don't broaden the listening scope. The Proxy port in Settings, when available, is for local access. It's not the Proxy mode in Global Routing, or the remote server port entered under Add Server. Changing the listening port doesn't change the remote service. Switching the routing mode to Proxy doesn't open a proxy for another device either.
Check the Address, Port, and Protocol Separately
Before connecting, check the listen scope, port, and protocol shown on the device. The address determines which network interface accepts connections, the port determines the entry point on that address, and the protocol determines how the client sends requests. The client must use the correct address, port, and supported protocol. If an option isn't shown in the interface, use the features available on your device rather than guessing from another platform's interface or copying its values.
For same-device access, if loopback listening is supported, limit the listener to loopback. For example, 127.0.0.1 refers to the device making the request; you can't enter it on a different device to point to the one running Shadowrocket. Use the displayed port if it has been verified to work. If you need to change it, choose an unused port accepted by the interface and update the client accordingly. The port number doesn't distinguish HTTP from SOCKS5 or provide access control. Don't assume common port numbers are fixed defaults.
Enable LAN Access Only When Needed
If your device and app support LAN access, enable it only when another device you own needs to use this entry point, and only on a trusted private network. On the client, enter the LAN address of the device running Shadowrocket, not the remote server address. The local address may change when Wi-Fi reconnects. Two devices showing the same Wi-Fi network name doesn't guarantee they can reach each other. If the system asks for local network permission, grant it only when the request matches what you're doing. Don't forward the listening port to the public internet or expand its scope on guest or public Wi-Fi.
Before connecting, confirm that the device providing the entry point can make the intended connection itself. Configure just one client for the test. Use an app that supports the selected proxy protocol to access a known-working target; don't start by changing all the client's network settings. Some apps may not follow the system proxy or may forward only certain types of requests. A successful test in one app doesn't mean all traffic on the device uses this entry point. If you only need to check whether a local app can connect, remove its temporary proxy settings when you're done.
Distinguish Refused Connections, Timeouts, and Protocol Errors
If the connection is refused immediately, check whether the listener is enabled, the address and port are correct, and the port is available. If it waits and then times out, check that both devices are still on a network where they can reach each other, whether the entry-point device's address changed, and whether system permissions allow access. If the connection is established but requests don't work as expected, check that the client uses the same protocol as the listener—HTTP or SOCKS5—then check the upstream proxy and target access on the device providing the entry point. These symptoms can narrow down the issue, but one error message alone doesn't identify the faulty layer.
During troubleshooting, keep the original port, listen scope, and client settings so you can restore them one by one. After testing LAN access, if you no longer need to share it, first remove the proxy setting from the client, then turn off the listener or restrict it to the required scope. Finally, confirm that the device providing the entry point still works with its usual settings and that the client has returned to its own network route. If you just need the initial connection steps, return to Getting Started. If the connection works and you want to learn about other options, see Features and Settings.