Set Type to match the protocol specified by your provider, then check the UUID, transport, and TLS settings. This guide is for users with connection details who need to enter them manually or verify an imported profile. It explains when to set VMess alterId, why VLESS can use TLS with encryption set to none, and why WebSocket Host, Path, and TLS SNI are separate fields that cannot be substituted for one another.
VMess vs. VLESS: Protocol, Transport, and TLS
In Shadowrocket’s Add Server screen, Type determines which protocol the client uses to communicate with the server. Even if two entries use the same address, port, and UUID, changing Type changes the protocol data sent by the client. Changing an existing VMess entry to VLESS does not switch the server to VLESS.
| Field or setting | VMess | VLESS |
|---|---|---|
| UUID | Enter the user ID for this VMess entry. | Enter the user ID for this VLESS entry. Do not reuse the VMess value just because it has the same format. |
alterId | Related to legacy authentication. VMess AEAD entries typically use 0. | This field is not used. |
| Protocol-level encryption | Uses a separate encryption method, such as aes-128-gcm. Follow the settings provided by your service provider. | A common setting is encryption=none, which means VLESS protocol-level encryption is not enabled. |
| TLS | Separate from VMess encryption; whether it is enabled depends on the server entry point. | An entry using encryption=none can still use TLS to protect the connection between the client and the TLS termination point. |
Treat Type, Transport, and TLS as three separate settings. For example, in “VLESS + WebSocket + TLS,” VLESS is the proxy protocol, WebSocket carries the protocol data, and TLS protects the connection. encryption=none does not disable TLS. Conversely, enabling TLS does not turn VMess into VLESS.
Add Server setup: UUID, alterId, and port
- Choose Type first. From Home, open Add Server and select VMess or VLESS as specified in your connection details. If you only have an address and port, get the protocol, user ID, and transport settings before proceeding. Do not guess the Type based on the port.
- Enter the address, port, and UUID. The address is the server Shadowrocket will connect to, not the website you want to visit. Enter the port in its own field. After pasting the UUID, check for extra spaces, line breaks, or truncation. Do not paste the entire connection URI into the UUID field.
- Check protocol-specific fields. VMess
alterIdis neither a password length nor an encryption method. If an existing entry has a nonzero value, first confirm whether the server still requires the legacy setting; do not change it to0just to see if it works. VLESS does not usealterId. If the connection details also specifyflow, use only the value provided by your service provider and confirm that the client supports that combination. - After saving, make sure the new entry is selected. Check the active entry name on Home. If you are keeping the old entry too, give the two entries distinct names so you do not accidentally test the old one after editing the new one.
If you use a subscription, get its link from your service provider. After importing it, you can still open the entry to check Type and the transport settings. Before sharing fields with your provider for troubleshooting, hide the UUID, tokens in subscription links, and any other credentials.
WebSocket, TLS, and SNI: what’s the difference?
The transport must match the server configuration. If your provider specifies TCP, do not switch to WebSocket just because TLS is enabled. If they specify WebSocket, check the Path and whether the server requires a Host. Preserve the exact capitalization and leading or trailing slashes in the path.
The field comparison below uses reserved example domains and is not an importable configuration. The connection address, WebSocket Host, and TLS SNI are intentionally different to show what each field does.
Type: VLESS
Server: edge.example.com
Port: 443
encryption: none
Transport: WebSocket
Host: ws.example.com
Path: /relay
TLS: enabled
SNI: tls.example.com
- Server and Port: These determine the address and port the connection is sent to. Port
443does not prove that TLS is enabled; check the connection settings. - WebSocket Host and Path: These are used in the HTTP request that establishes the WebSocket connection. If the server routes requests by hostname and path, an incorrect value in either field can prevent the WebSocket handshake, even if TLS is working.
- SNI: The server name sent by the client during the TLS handshake, which the entry point uses to select the appropriate TLS configuration. The certificate must also match the name the client uses for verification. If you see a certificate error, first check the name specified by your provider and the device’s date and time. Do not bypass the error by disabling certificate verification.
Troubleshooting connection failures: check the handshake, then routing
First confirm the active entry on Home, then retest with the same HTTPS page that you know is reachable. A latency test returning a value only means that the relevant probe got a response. It does not prove that the browser used the same connection to reach its destination, nor does the value alone show whether VMess or VLESS is faster.
Testing with Global Routing
Config
RecommendedKeep your routing rules in place, then confirm that the test domain matches a policy that actually uses the entry you are testing or its policy group. If it matches DIRECT, opening the page does not prove that the proxy connection is working.
Best for: verifying the actual route used with your everyday routing rules
Proxy
Temporarily switch Global Routing to Proxy and retest the same destination to reduce the impact of routing rules. Restore the previous mode when you are done.
Best for: separating routing issues from connection issues when the same destination fails in Config
If it fails only in Config, check the matched policy first
If the same entry, network, and destination work in Proxy but fail in Config, first check the rule matched by that destination, the entry actually selected by its policy group, and the resolution path in each mode. Do not change the UUID or alterId yet; that would introduce new variables.
- Connection timed out: Check the spelling of Server and the Port, and confirm that the current network can resolve the server address. This does not yet prove the UUID is wrong; the connection may not have reached the authentication stage.
- TLS or certificate error: Check that TLS is enabled if required by the server, verify the SNI, and make sure the device’s date and time are correct. If VMess authentication fails, also check that automatic time setting is enabled on the device.
- WebSocket handshake returns HTTP 404: Check Host and Path first. A 404 means an HTTP response was received, but the request may not have reached the proxy entry point. It is not direct evidence of an incorrect UUID.
Common VMess and VLESS setup questions
VLESS shows none. Should I disable TLS too?
No. First confirm that none is the value for encryption, not the security setting for the outer connection. If the connection details also specify TLS, leave TLS enabled in Add Server and check the SNI. Do not infer the TLS status from the protocol encryption value.
Is leaving VMess alterId blank the same as setting it to 0?
Do not assume that every interface treats a blank field as 0. If your provider specifies 0 and the field is available, enter 0 explicitly, save, then reopen the entry to check it. VLESS does not use this field.
Manual setup fails, but the same imported connection works. What should I compare first?
Compare Type, Server, Port, and Transport first, then check the UUID, TLS, SNI, and WebSocket Host and Path. Change one difference at a time. After saving, select the entry again and retest the same destination.
Can I duplicate a VMess entry and change it to VLESS?
Only if your service provider has also given you VLESS connection details. Create a separate entry and check the address, port, UUID, and transport settings against the new details. Keep the old entry until testing is complete. Changing Type alone does not change the server configuration.
Shadowrocket downloads and setup guides
The iPhone and iPad app costs $2.99 as a one-time purchase on the App Store. Check the App Store listing for system requirements. The Mac (Apple silicon and Intel), Windows, Android, and Linux versions are free; download installers from this site’s download page. To verify the App Store listing, check that the developer is Shadow Launch Technology Limited and the app ID is 932747118.