Shadowrocket Settings Guide
Check which layer is in effect before changing settings: the app’s current state, the active file in Config, or system network and permission settings.
Getting Started explains how to import an existing subscription or server details and make your first connection. Use this guide to find settings, verify changes and troubleshoot issues after connecting. Paths use iPhone / iPad as examples; on other platforms, look for the corresponding options available on your device.
DNS: system resolution, custom servers and DNS over HTTPS
If DNS resolution is reliable, keep the system DNS setting. Change the resolver only when you can reproduce a resolution failure or your work network explicitly requires a specific resolver. Note the active file in Config, then check whether it specifies DNS; an imported configuration may already set it. Don’t assume the current request’s DNS path based on a single value shown in Settings. An unset option doesn’t mean every request follows the same path, and the app may resolve names differently for its own requests.
When to keep system DNS
System DNS follows the device’s current network settings, making it suitable when switching between home Wi-Fi and cellular. Internal names on a company, school or home network may only resolve through that network’s resolver. A public resolver reaching public sites doesn’t prove it can resolve internal names. Before switching, note one working public domain and one internal name you’re authorized to access; test both after the change. If only the internal name stops working, restore system DNS first, then check the network administrator’s requirements.
A new guest Wi-Fi network may require you to complete a sign-in step in the system before regular internet access is allowed. If several public domains time out at once, that doesn’t necessarily mean the configured resolver has failed. If direct access is permitted, pause automatic connection, follow the system prompts to sign in, then restore your previous mode. If the same device works on a known-good network, focus troubleshooting on the guest network rather than changing subscriptions and routing rules all at once.
Entering custom DNS and encrypted DNS addresses
A standard DNS server address and a DNS over HTTPS endpoint use different formats. If a field asks for a resolver address, enter the address provided by your network or existing DNS service. If it accepts DNS over HTTPS, enter the complete HTTPS endpoint from the service documentation, including the exact path. Don’t enter a subscription URL, proxy server address or provider homepage. Unless you have a specific fallback requirement, test one new resolver at a time; using several at once makes intermittent failures harder to trace.
DNS over HTTPS encrypts the connection to the resolver; it doesn’t replace Global Routing or automatically route web traffic through a particular policy. If the endpoint uses a hostname, the device must be able to resolve it first. If requests fail only before a connection is established but work afterward, check whether the endpoint is reachable initially. For certificate errors in the log, first check the device clock and endpoint name. Don’t disable certificate verification just to pass one test, and don’t treat a certificate error as an ordinary timeout.
Verify the change with the same request
Keep the network, selected server and routing mode unchanged. Change only one DNS setting, then revisit the same public domain in the same app. Repeated refreshes may use cached results, and existing connections may be reused. Close the current connection for the page or app before making a fresh request; if possible, cross-check with another similar public domain. Note whether the failure occurs before or after an address is returned. Treat DNS resolution as the primary suspect only when no address is returned.
If an address is returned but the connection never gets a response, check the matched policy and destination connection next instead of repeatedly changing DNS. Different answers for the same hostname don’t necessarily indicate a problem; resolvers, network location and cached results can all vary. If the issue occurs on only one network, restore the original value and test again to see whether the problem follows the change. For more on the options, see DNS settings explained.
On Demand: connection triggers
On Demand determines when a connection starts; it doesn’t decide whether a request uses a proxy or goes direct. For initial troubleshooting, turn off On Demand, connect manually from Home and verify the connection. If On Demand was enabled before, or its system settings remain in place, don’t assume it’s off just because turning it off is recommended for testing. Check the app’s current display, then verify the system connection status and test an actual network change.
Define the trigger scope before enabling it
Find On Demand in Settings and review the conditions available on your device. Enable only a condition you actually need day to day. If the interface distinguishes Wi-Fi from cellular, test one first before adding the other. If it lets you match a Wi-Fi network name, enter the name of the actual access point exactly; don’t use the device name. If the condition you need isn’t available, don’t copy paths from another platform or try to simulate a connection trigger by changing DNS.
Write down the two outcomes you expect: when the device joins the specified network, a new request should start a connection; when it leaves that scope, the same condition should no longer trigger one. The second outcome doesn’t mean an existing connection must drop the instant you leave—the system determines whether it stays active and when rules are reevaluated. Record “connected automatically?” and “did the existing connection stay active?” separately.
Test network transitions, not repeated toggling
Keep the active Config file, server and routing mode unchanged. First confirm the baseline on a network that doesn’t meet the condition, then switch to one that does. Wait until the system shows that the network is connected, make a request to a known-good public site, then check the connection status on Home. An old page still responding doesn’t prove that automatic connection just occurred; its existing session may still be active. Check a new request made after the network switch.
When testing transitions between Wi-Fi and cellular, don’t combine both changes at once. Confirm the device has left the original network before checking whether the target network triggers a connection. After waking the device, first make sure the system has reconnected. A weak Wi-Fi signal or brief switching between access points can make one state change inconclusive. Repeat the same steps in the same location to distinguish network fluctuations from a condition mismatch.
Reconnects after disconnecting, or won’t connect when the condition is met
If the connection starts again after you manually disconnect, check whether the On Demand condition still applies and confirm that the active system connection configuration belongs to Shadowrocket. For a controlled test, pause On Demand first, then disconnect manually; toggling the switch only on Home may let the next request trigger another connection. On managed devices, don’t remove unfamiliar configurations; check with the device administrator if an option is locked.
If the condition is met but no connection starts, first try connecting manually on the same network. If that fails too, check permissions, the server and network access. If manual connection works but automatic connection doesn’t, check the matching scope, network name, whether the condition was saved and whether your test actually made a new request. If the connection is active but a specific page fails, check DNS, Log and rule matching. When you’re done, restore the conditions you recorded and test both types of network you use day to day.
Ping and Connectivity Test: targets and timeouts
A response time next to a server reflects one probe under the conditions at that moment. It doesn’t measure real-world download speed or guarantee that an app will work. Ping doesn’t necessarily mean an ICMP echo request sent by the system; a client test may check a port, handshake or destination. Read the test name and available options shown on your device before deciding what the result proves. Verify Connectivity Test separately from an actual request in the app you use.
What to keep in the default test
Start with the current test method, target and timeout. If the screen has no custom options, use the built-in test for comparison without assuming its exact packets or internal timeout. If you need a custom target, choose a short, reliable HTTPS page you’re authorized to access and that’s reachable on the current network. Don’t use a subscription URL as a test target. Avoid pages that require sign-in, redirect repeatedly or return large amounts of data, since app response time can obscure differences in connection setup.
Before comparing results, keep the network, target and test method the same, and note whether the initial connection had completed. A first probe may include DNS resolution, connection setup or an encrypted handshake; later probes may reuse cached data or a session. Record the first result separately from subsequent ones. If the same test alternates between success and timeout, retry occasionally from a known-good location and see whether the failures cluster. One unusually fast result or an isolated success doesn’t prove a connection is reliable over time.
Adjusting the timeout
If the interface lets you change the timeout, keep the current value for everyday use. Increase it only when a known-good target on a noticeably slow network consistently succeeds just as the wait limit is reached. Keep the original results for comparison. If a longer timeout only means waiting longer without consistent success, restore the original and check DNS and the connection process. A longer wait won’t fix an incorrect address, authentication failure or unreachable destination port.
Don’t test every saved server repeatedly just to find the lowest number. Concurrent requests compete for network capacity and can use unnecessary cellular data. Start with one server entry you know has worked before, then test server connectivity and destination access from the same location. If you test another entry, change only the server. Results aren’t meaningfully comparable if you change both the location and server.
Choose the next step based on the result
If the test fails but your usual destination opens, check whether the test URL is still valid, reachable on that network and using the same route as your app. If the test succeeds but your usual destination doesn’t open, check that destination’s DNS result and matched policy, then look for connection or authentication errors. If both fail, check the active Config file, server address and port, and network access first. Compare these against your existing server details rather than guessing at parameters.
When reporting an issue, describe the conditions as “same Wi-Fi network, same test, new connection” and state whether it failed during DNS resolution, timed out while connecting, was explicitly refused, or completed before the page failed to load. Hide addresses and identity fields in screenshots or logs. A short, reproducible record is more useful than a full page of timings. After recording it, test again in the app you actually use to confirm the change improved the real request, not just the probe result.
Log: pinpointing DNS, rules and connection stages
Log tracks the stages a request passes through. Keep the existing log settings for everyday use. If the interface offers more detail, enable it only while reproducing the issue and restore it afterward. Fields vary by platform and active Config file; don’t change unrelated settings just to find a particular field. First check the connection status on Home and note the network, active file, routing mode and selected server.
Start with a clean reproduction
Close pages that keep making unrelated network requests, note the local time, make one request to the target, then return to Log and inspect that brief interval. If the target app keeps an old session open, leave the current page or close the app’s connection before making a new request. A browser page may request several domains at once. Find the entry that matches the main page failure first, then check APIs or static assets to avoid mistaking background traffic for the cause.
No matching entry after reproducing the issue doesn’t mean the client rejected the request. The target app may have reused an existing connection, used an IP address directly, or sent traffic outside this connection. First confirm that logging is collecting data, then use a successful request as a reference. If that request isn’t logged either, check the capture scope, mode and whether the app actually made a new request instead of editing rules straight away.
Read the log by failure stage
When DNS resolution fails, there usually isn’t an address available for the destination connection, so start by checking DNS. If the address resolved and the log shows a REJECT policy, check the conditions and order of the active rules. If the selected policy is expected, look for a connection timeout, refusal or protocol handshake. A timeout means the expected result didn’t arrive within the wait period; it doesn’t by itself prove the server is down or the credentials are wrong.
For an explicit authentication failure, compare the protocol, port and parameters against your existing details, paying particular attention to spaces or line breaks introduced when copying. For certificate errors, check the device clock, destination name and original configuration requirements; don’t loosen verification without a clear reason. If access works briefly and then drops, record when the first response arrived and when the connection ended, and check for a network switch or system reconnection in between. Don’t conflate either event with an initial handshake failure.
Keep only the information needed to troubleshoot
Before sharing logs, remove subscription URLs, authentication fields, parameters in full request URLs, internal domain names and personal device identifiers. Keep relative timestamps, processing stages, policy names and error types. If you need to refer to the same host in multiple entries, replace it consistently with “Target A.” Don’t share a complete Config file or unchecked long screenshots; identity fields may appear beyond the first screen. Use fictional domains in public examples instead of copying real records.
After changing one setting, repeat the same steps on the original network and in the original mode. Compare whether the failure disappeared, stayed at the same stage or moved to the next one. Resolving the name but still failing to connect means only the earlier stage was fixed; don’t mark the whole request as working. If you changed the wrong setting, restore it before continuing from the earliest stage supported by evidence.
Widget: shortcuts and connection status
A Widget is a system-provided shortcut, not a separate connection configuration. You don’t need to add one right away; first connect from Home and confirm that requests work. Whether a widget is available, where it can be placed and which actions it offers depend on the system and the capabilities on that device. Don’t assume the size or buttons seen on another device are available on yours, or treat the widget’s appearance as the only indicator of tunnel status.
Confirm the app connects before adding a widget
Open Shadowrocket and check that an existing server works, the system connection permission has been granted as prompted and the current routing mode is what you expect. Then return to the system Home Screen, enter edit mode and find Shadowrocket in the widget list. Choose a widget available on your device and add it. If you only need to check status, start with a size that displays text clearly. If you want controls, confirm that the selected widget actually offers the action; not every size can toggle the connection.
After adding the widget, verify it with a visible status change. Connect manually in the app and confirm access to a destination you chose in advance, then return to the Home Screen and check the widget. If it offers a control, try the action from the widget and cross-check the result in Home and the system status. If it only opens the app, perform the action there. Finally, restore your usual connection state so the device isn’t left in a different mode after testing.
Tell a refresh delay from an action that didn’t work
The system may not refresh the widget and app view at the same time. For example, after switching from cellular to Wi-Fi, the widget may briefly show the old state while the app already reflects the current connection. Check whether the app and system agree, then make a new request. If both agree and only the widget differs, treat it as a display issue first. If the app and system disagree, check whether the connection is still starting or reconnecting. Don’t tap the widget repeatedly; opposite actions in quick succession can look like a single failed action.
If the widget says disconnected but a webpage still opens, the page may be using a direct system connection or showing cached content. One old page can’t confirm that the connection is still active. Conversely, a connected widget and a failing app don’t prove the widget control is broken. Check whether only certain domains fail, then inspect Global Routing and Log. Always make a new request when comparing results, and note whether you’re testing status, an action or access to a destination.
Widget missing or different after changing devices
Search the system’s widget list again and confirm the app itself opens on this device. If the widget isn’t listed at the current location, check a supported Home Screen location; use the list on your device to see whether Lock Screen placement is supported too. If the displayed status stays stale, open the app to check it, then remove and re-add the widget if needed. Removing a widget removes the system shortcut, not a subscription or active Config file, so there’s no need to reset all settings just to restore the display.
After moving to a new device, check three things separately: whether the widget was added again, whether the app has a usable Config file on this device, and whether the system has granted connection permission. Restoring the Home Screen layout may bring back the shortcut, but doesn’t mean the Config file was synced. If others can see your device, place the widget where it won’t expose connection details; leave it off if you don’t need the shortcut. Keep your main verification steps on Home so you can repeat them consistently across devices.
iCloud sync: data scope, device migration and conflicts
Choose which device’s data is authoritative before enabling sync. Don’t assume sync is on just because both devices use the same system account, or that iCloud sync backs up every field. First check that iCloud is available in the system, then review the options on your device under Settings and Data. Test with a non-sensitive change before migrating your working Config files. Use only your own devices, account and existing data.
Distinguish purchase history, app data and system authorization
Restoring the app from your purchased items reinstalls the app; opening it doesn’t mean files, server entries or preferences from your old device have returned. The system’s connection permission must also be checked separately on the new device; don’t infer its status from the old one. When changing devices, first check the channel in the purchase restoration guide on the Getting the App page, then check data and permissions on the new device. Verifying all three separately is more reliable than assuming the migration is complete because the app icon is on the Home Screen.
If Import from Cloud JSON appears in your current interface, it imports data you select manually; it isn’t continuous sync. Before importing, check the source and data scope, especially for existing server entries and sensitive fields. Use the backup option available in your interface to preserve the current state. After importing, check entries on Home and the active file in Config. Don’t assume the import automatically replaces the active file or includes every setting.
Sync a small item first, then check the receiving device
Use a device with a recoverable copy as the baseline, and pause editing on the other device. If the sync options list file categories, choose a non-sensitive test item in one of them and note its name and the change. Once the receiving device is online, check the corresponding list and reopen the screen if needed. When the item appears, open it to confirm the change arrived. A matching name doesn’t guarantee matching content, and an old item in the list doesn’t prove the latest sync succeeded.
Check that the receiving device’s active file and selected server suit its network, then verify a manual connection before restoring On Demand. The same rules may work on both devices, but their Wi-Fi names, system permissions and shortcut placement may differ. If each device needs different local behavior, record those differences separately; don’t assume a test that passed on one device will pass on the other.
Resolve missing items, duplicate names and edits on both devices
If data is missing on the receiving device, check system sign-in and storage availability first, then app sync options, then whether the item is included in the sync scope. Fix the first clear issue before changing settings on both devices repeatedly. Don’t delete a working Config file just to test. If two files have the same name, save recognizable copies of both, then compare their contents and known edit history before choosing which to keep. If you can’t establish which is newer, don’t guess based on list position.
After a conflict, first confirm which copy works on the baseline device. Then check that editing has stopped on the other device and that it received the same content. If needed, save a manual copy under a clearly different name to prevent further edits to identically named files across devices. Keep files used for manual migration somewhere you control, then remove temporary copies when you’re done. If you don’t need to share across devices, keep local data and separate backups so a temporary experiment on one device won’t affect another environment in use.
Proxy ports: local listeners, addresses and port conflicts
First determine whether you need to change a local listening port or the remote port for an existing server. A local listener provides an HTTP or SOCKS5 entry point for other apps to connect to on this device. A remote port is part of the server details in Add Server; use the values in your existing configuration. If you only use Shadowrocket’s tunnel on this device, you generally don’t need to enable a local listener. Proxy in Global Routing is a routing mode, not a listener switch.
Set the intended scope before entering an address
If the listener is only for apps on this device, prefer a loopback address if the interface offers one, rather than exposing it on every network interface. When another local app asks for an address, enter the one the listener actually uses. A common IPv4 loopback address is 127.0.0.1, but it doesn’t point to another computer or phone nearby. A different device’s loopback address points back to itself, not to the device running Shadowrocket.
If you don’t have a clear need to use the listener across devices, leave its sharing setting unchanged rather than expanding its scope. If you do need that access, test only on a trusted local network you manage, after checking device policy, local options and access restrictions. Guest networks may isolate devices on the same Wi-Fi, so the correct address and port may still not connect. Don’t expose the listener to a public network for testing or disable system protections long-term. If devices can’t connect to each other, check network scope and permissions first.
Default ports and how to change them
Use the value shown in the current interface; don’t assume another platform uses the same port. If a listener is needed and there’s no conflict, keep the existing value. If the port is occupied, first check whether a service is already bound to the same address and port; don’t stop an unfamiliar process. If you need to change it, choose an available port permitted on your device, record the change, then update every app that explicitly points to this listener. If HTTP and SOCKS5 are offered separately, verify that each protocol is paired with the right port.
After saving, confirm the listener is active on the new port. If the interface says the setting needs a restart, follow the prompt, then make a new request from an app that’s known to be allowed to use it. Don’t rely on an old webpage still being visible: the app may be reusing an existing session or falling back after a proxy failure. Check the address and protocol configured in that app, then use local records to confirm it connected to the new listener. When migration is complete, remove the old port from the other app’s settings to avoid occasional use of the outdated entry.
Use the error type to distinguish local from remote issues
If a connection is refused immediately on the same device, check whether the listener is running and whether the address and port match. If it times out, especially from another device, check reachability between the devices, whether the listener is bound only to loopback, and whether system permissions allow access. If the listener accepts the connection but the handshake fails, check whether the other app uses HTTP or SOCKS5 and whether the listener requires authentication. If the handshake succeeds but the destination still won’t open, check the active policy and remote server.
Another app may still have an old local proxy set as its outbound route, causing regular internet access to fail after you disable the listener. To roll back, first restore that app’s original network settings, then turn off the temporary listener and check whether testing changed any system proxy settings. If sharing was enabled only on one network, make sure the listener isn’t still exposed after switching networks. Keep a record of the protocol and port before and after the change; there’s no need to save authentication details in troubleshooting notes.
Global Routing: modes, rule order and fallback
For domain- or address-based routing, select Config in Global Routing and check which file is actually enabled on the Config page. Check the current mode on Home; don’t assume reopening the app restores the recommended mode. Proxy and Direct are useful for brief comparisons. Record the original mode before switching, and test only on networks and with services where the selected route is permitted.
| Mode shown in the interface | How traffic is handled | What to check |
|---|---|---|
| Config | Matches rules in the active Config file and applies the selected policy. | Check the file, first matching rule and fallback. |
| Proxy | Routes traffic handled by the client through the proxy; it doesn’t test individual rule matches. | Check the selected server and destination access. |
| Direct | Routes traffic handled by the client directly; it doesn’t turn off the connection switch. | Evaluate direct access separately from the system’s network status. |
Rules are checked top to bottom; processing stops at the first match
DOMAIN matches a specific domain. DOMAIN-SUFFIX matches a suffix and its subdomains; GEOIP uses the geographic classification of an address and doesn’t identify which domain it belongs to. In the example, a single-domain exception comes before a suffix rule. If the order is reversed, the suffix matches first and the exception never takes effect. FINAL applies only if no earlier rule matches, so put the fallback last and specify the intended policy.
[Rule]
DOMAIN,blocked.example.com,REJECT
DOMAIN-SUFFIX,example.com,PROXY
GEOIP,CN,DIRECT
FINAL,PROXY
This shows rule order in [Rule] only; it isn’t a complete Config file or a universal ruleset for every device. When the domain is visible to the rules, the first line rejects the specified host, the second covers other requests under that suffix, and a broader address classification follows. The proxy policy is the final fallback. If a real request uses an IP address directly or the app requests a different domain, the logged match may differ from what you’d expect from the address bar.
Run a controlled comparison with one failing destination
In Config, check the rule that actually matched before temporarily switching to Proxy. If proxy mode works but Config mode doesn’t, compare the policy and DNS results for the two requests first; that difference alone isn’t a reason to change servers. Direct mode is comparable only when the test destination permits direct access. If all three modes behave the same way, check DNS, connection status and the destination itself instead of blaming every issue on the rules.
Save a working copy before editing rules, and change only one condition or one rule position at a time. A refresh may overwrite manual edits in a file managed by subscription updates. Keep important local changes in a clearly identifiable copy, and confirm which file is active. After changing a rule, make a new connection to the destination; an existing session may continue along its old route. Test at least one destination that should match and one that shouldn’t, then restore your usual mode. For more, see Custom rule priority and The three Global Routing modes.
If the issue occurs while getting the app, check the download source first
If you haven’t obtained the app or can’t find a previous purchase, there’s no need to change network rules first. Find the right option for your device under Getting the App. For installation help, see Installation instructions and the FAQs at the bottom of the download page. Get Shadowrocket for iPhone / iPad from the App Store product page for a one-time US$2.99 purchase; check the store page for current pricing. System requirements are as listed on the App Store page. Verify the developer name, Shadow Launch Technology Limited, the official icon and app ID 932747118. The Mac (Apple Silicon and Intel), Windows, Android and Linux versions are free; installers are available from this site’s download page at /dl/.
A one-time app purchase is not a subscription for proxy access. This guide only covers subscriptions or server details you already have. Once you’ve obtained and installed the app, follow Getting Started to establish a repeatable initial connection. Then return to this guide to troubleshoot individual settings. If you’re unsure where to start, check Home and the active file, then work through DNS, Log and rule matching in that order.