At a glance

Use this guide when you already have a Shadowrocket QR code from your own provider and want to add the encoded connection to your server list. Open the scanner from Home, approve camera access if prompted, review the import, and then select the new entry before connecting. A QR code can contain a single server or, depending on its contents, a subscription link, so check what Shadowrocket actually adds rather than assuming every scan creates the same kind of entry.

Before you scan: check the code and its source

A Shadowrocket QR code is a compact way to transfer connection information. Depending on how it was created, it may encode a single server configuration or a subscription address. The image itself does not tell you whether the data is current, complete, or safe to share. Use a code supplied to you by your own provider, and avoid scanning a code from an unknown page, message, or public display.

Some codes contain credentials or a link that grants access to configuration data. Treat the image like a password: don’t post it publicly, send it to people who don’t need it, or include it in an unredacted screenshot. If a code has been shared widely, ask your provider whether the associated credentials or link should be replaced. This guide explains how to import information you already have; it does not provide or recommend servers, subscriptions, or providers.

Before opening the scanner, make sure the code is fully visible and sharply focused. On another screen, increase brightness if necessary, remove glare, and keep the entire square inside the camera view. If you are scanning a printed code, flatten the page and avoid shadows. A code that looks readable to a person can still fail if part of its border is cropped or the image is blurred.

Home → +
The usual starting point for adding an item in Shadowrocket
1–65535
Valid numeric range for a TCP or UDP port, if a port is shown
2 checks
Confirm that the item appears, then verify its type and details

Keep the distinction between an imported server and a subscription in mind. A server entry is normally a connection you can select from the list. A subscription is a source that can provide or update one or more entries. If the scan produces an item that looks different from what you expected, don’t repeatedly scan the same code; first identify whether it added a server, a subscription, or nothing at all.

Scan the QR code from Home

These steps describe the usual flow on iPhone or iPad. The wording or placement of a menu item can vary between app versions and platforms, so follow the corresponding scanner or QR option if the labels on your screen differ slightly. If Shadowrocket asks for camera access, allow it for the scan. You can review camera permission later in the device’s Settings if you previously denied it.

  1. Open Home

    Launch Shadowrocket and go to Home, where the current server and any existing entries are listed. If a connection is active, note which entry is selected before adding another one. You can return to the same list after the import to compare the new item with what was already there.

  2. Open the add menu

    On Home, tap the “+” button, usually in the upper-right corner. Look for Scan QR Code or the equivalent scanner option in the menu. Choose the scanner rather than manually entering server fields; a QR import is intended to transfer the encoded configuration.

  3. Allow camera access

    If a permission prompt appears, approve camera access so Shadowrocket can read the code. If the camera view does not open, check the device’s Settings → Privacy & Security → Camera, or the app-specific Shadowrocket settings. On some system versions, app permissions are listed under Settings → Apps → Shadowrocket.

  4. Frame the code

    Hold the device steady and place the complete QR code inside the scanner’s frame. Keep the code flat, in focus, and free of reflections. If it is on another device, show the code at a comfortable size; zooming in too far can crop the corners that the scanner needs.

  5. Review the import

    Wait for Shadowrocket to recognize the code. If an import or confirmation screen appears, check the displayed item and confirm only if it is the configuration you intended to add. Some codes may be processed directly, so return to Home and inspect the list even if you did not see a separate confirmation prompt.

  6. Find the new entry

    Return to Home and look for the imported item. If you have many entries, compare the displayed name with the label or details supplied with the code. Don’t assume that a successful scan means the connection is already active: importing and selecting an entry are separate actions.

When scanning a code displayed on the same iPhone or iPad, the camera cannot normally read the screen it is using. Display the QR code on another device or on a printed page, then scan it with Shadowrocket. If the code is only available as an image on the current device, check whether your version offers an image-based import option; do not assume that the camera scanner can access the photo automatically.

Confirm what was imported and select it

After a scan, check the Home list before making connection changes. A new row is a useful first sign, but its name alone may not identify the protocol or tell you whether all required values were included. Tap the entry or open its detail view, where the available fields can be compared with the information supplied by your provider. The exact fields depend on the configuration type.

Single server entry

List check
A new selectable item appears on Home
Detail check
Type and supplied connection fields are present
Next action
Select the entry, then test the connection

Compare details with the information from your provider; don’t guess missing credentials.

Subscription item

List check
A subscription or source may appear instead of one server
Detail check
Confirm the source is the one you intended to add
Next action
Follow your provider’s update instructions

A subscription can represent a list of entries rather than one directly selectable server.

To use a newly imported server, tap its row in Home to select it. Then use the connection control in Shadowrocket when you are ready to connect. If the app or system requests permission to add or activate a VPN configuration, review the system prompt and approve it only when you intended to start the connection. A selected row and an active connection are not the same status.

Choose the scan setup that fits your QR code

Code on another screen
  • Open the code on a computer or second device
  • Keep the full square visible and in focus
  • Scan from Home → + → Scan QR Code
Printed code
  • Place the page on a flat, well-lit surface
  • Avoid glare, folds, and cropped corners
  • Hold the camera steady while it reads

The camera needs to see the code from a separate surface; a code shown on the device’s own screen cannot usually be scanned by that same camera.

If the entry is present but does not connect, first confirm that you selected the intended item. Then check its details against the information supplied with the code, including the server address, port, protocol, and any required authentication or transport settings that are visible. A correct-looking label does not prove that the server is reachable or that the encoded credentials are still valid.

Troubleshoot an unreadable code or missing entry

Make one adjustment at a time. Reposition the code, improve focus, or check permission before changing network settings. Repeated scans of the same unchanged image rarely solve a camera or permission problem, and can make it harder to tell whether a new item was actually added.

The scanner opens, but it won’t read the code. What should I try?

Wipe the camera lens, increase the brightness of the screen displaying the code, and fit the entire square inside the frame. Try a different viewing distance rather than zooming until the edges disappear. If the code is blurred or damaged, request a clear replacement from the person or provider who supplied it.

I tapped the code, but nothing appeared on Home. Did it import?

Return to Home and check the full list, including entries with similar names. If there is still no new item, scan once more with the complete code in view. If the result is a subscription rather than a server, follow the provider’s instructions for refreshing that source instead of expecting a single server row.

Shadowrocket says it can’t access the camera. How do I fix that?

Open the device’s Settings and find Shadowrocket’s camera permission. Depending on the system version, look under Privacy & Security → Camera or Settings → Apps → Shadowrocket. Enable camera access, return to Shadowrocket, and reopen the scanner.

The entry is there, but the connection fails. Is the QR code broken?

Not necessarily. Confirm that the entry is selected and compare its available details with the information from your provider. A successful scan only means the code was read; it does not confirm that the server is online, the credentials are current, or the current network can reach it.

Look at the exact message if the scan or import reports an error. A camera recognition problem points to focus, lighting, cropping, or permissions. An import error may instead indicate malformed or unsupported encoded data. A connection timeout after an entry appears is a different issue: check the connection details and current network, and ask your provider to confirm that the supplied configuration remains valid.

If a QR code opens or adds a subscription, keep the link private. Subscription links can contain access credentials, and sharing them may expose the associated configuration. Get subscription links and any replacement configuration directly from your own provider. Do not paste a private link into public troubleshooting posts or send a screenshot that reveals it.

Use a quick checklist before connecting

Before turning on the connection, make sure you know which entry is selected and whether it came from a single-server code or a subscription. Check that the newly added item is visible, its type matches what you expected, and any details you can verify are consistent with the information you received. If multiple entries have similar names, rename or organize them only after confirming which one is which.

If you need the app, the iPhone and iPad edition is available on the App Store for a one-time purchase of $2.99. Mac (Apple silicon and Intel), Windows, Android, and Linux editions are free from the site’s download page. A client purchase or download is separate from any service subscription; obtain configuration details from your own provider.