VMess vs. VLESS in Shadowrocket: Encryption, alterId, and Transport Setup

Compare VMess and VLESS encryption, UUIDs, alterId, and TLS requirements, then learn how to choose a type in Add Server using your provider’s settings.

At a glance

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 settingVMessVLESS
UUIDEnter 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.
alterIdRelated to legacy authentication. VMess AEAD entries typically use 0.This field is not used.
Protocol-level encryptionUses 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.
TLSSeparate 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

36 characters
Length of a standard hyphenated UUID, including its 4 hyphens
0
Common alterId value for VMess AEAD entries
443
Common TLS port; use the value specified for the server entry point
  1. 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.
  2. 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.
  3. Check protocol-specific fields. VMess alterId is 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 to 0 just to see if it works. VLESS does not use alterId. If the connection details also specify flow, use only the value provided by your service provider and confirm that the client supports that combination.
  4. 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

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

Recommended

Keep 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.

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.

Official Shadowrocket downloads