VMess and Trojan are protocol labels you may see on a Shadowrocket server entry. They are not subscription plans, routing modes, or reliable speed ratings. This beginner’s guide explains what the labels tell you, which details to compare with the information from your own provider, and how to check the selected type in Shadowrocket. It also covers common setup mistakes and a practical way to choose based on compatibility rather than guesswork. The examples assume you already have your own service and connection details; this site does not provide, sell, or recommend nodes or subscriptions.
What VMess and Trojan mean in Shadowrocket
VMess and Trojan identify how a connection entry communicates with its remote server. In Shadowrocket, the protocol type determines which fields are available and how the app interprets them. Selecting a type is not a way to change the service itself: if the server information was issued for VMess, choosing Trojan does not convert it into a Trojan server, and the reverse is also true.
The protocol label alone does not tell you whether a connection will be fast, stable, private in every context, or suitable for a particular network. Performance depends on many factors, including the service configuration, server location, network conditions, routing, and the device’s connection. A protocol name is useful for matching settings, not for ranking a server by quality.
VMess entries commonly involve an address, port, UUID, and additional transport or security settings. The exact fields depend on how the service is configured. Trojan entries commonly involve an address, port, password, and TLS-related information, such as a server name when one is specified. These are general parameter categories, not a universal form that every server uses.
Neither label is a substitute for a complete configuration. Two entries can both say VMess and still require different transport, TLS, or other settings. The same applies to Trojan. Shadowrocket must receive values that match the server’s actual configuration; copying only the address and port may not be enough.
- VMess: Check the UUID and all transport and security values provided with the connection. A UUID is an authentication value, so keep it private.
- Trojan: Check the password and any TLS or server-name details provided. Do not assume that a familiar port number means the remaining fields can be omitted.
- Both: Confirm the protocol type, server address, port, and any optional values against the original connection details before saving.
Check the connection details before adding an entry
Before opening the add form, locate the configuration information for the connection you already have. It may be available as a server entry in Home or as part of an existing subscription. If a subscription has already imported the entry, check its displayed type before creating a duplicate manually. Making a second entry with a similar name can make it harder to tell which one is selected during a test.
Keep sensitive information out of screenshots and public messages. UUIDs, passwords, subscription URLs, and complete configuration files may contain credentials. If you need help identifying a field, share only a redacted description of the label and the kind of value it expects—not the secret itself.
| What to verify | VMess examples | Trojan examples |
|---|---|---|
| Connection type | VMess | Trojan |
| Server and port | Use the address and port in your supplied details | Use the address and port in your supplied details |
| Authentication | Check the UUID and any specified related options | Check the password and any specified related options |
| Transport and security | Match the supplied network, TLS, and other applicable settings | Match the supplied TLS, server-name, and other applicable settings |
Do not treat common examples as default values. Port 443, a particular transport, or a particular TLS setting may appear in some configurations, but that does not make it correct for yours. Likewise, do not paste a VMess UUID into a Trojan password field or move a value between similarly named fields without checking what it represents.
Add or check the entry in Shadowrocket
The following workflow uses the iPhone and iPad Home interface as an example. Menu placement can differ across platforms or interface versions, but the principle is the same: choose the protocol that matches your existing connection details, enter the corresponding values, and then test the saved entry. Shadowrocket is available for iPhone, iPad, Mac, Windows, Android, and Linux. iPhone and iPad versions are a one-time $2.99 purchase on the App Store; Mac versions for Apple silicon and Intel, Windows, Android, and Linux versions are free. For computer or Android downloads, use the client download page.
-
Check Home first
Open Home and look for the entry you intend to use. If it came from a subscription you already have, confirm that it is present and note the protocol shown before adding anything new.
-
Open the add form
If you need a manual entry, go to Home → tap “+” in the upper-right corner → Type. Choose VMess or Trojan according to the supplied connection details, not according to a speed claim or a guess about which type is newer.
-
Enter matching values
Copy the address, port, authentication value, and applicable transport or security settings into their corresponding fields. Pay special attention to UUID versus password and to any server-name or network fields.
-
Save and select
Save the entry, return to Home, and make sure the intended entry is selected. If several entries have similar names, rename them clearly using labels that do not expose credentials.
-
Test one change
Connect and test a known website or use the app’s available connectivity check. If it fails, change only a value you have verified against the original details, then test again so you can identify which correction mattered.
Connection status and routing are separate checks. An enabled connection does not prove that every request is using the selected entry: Global Routing, the active Config, and its rules also affect how traffic is handled. For a first test, confirm the selected entry and current routing mode before editing rules. Avoid changing several unrelated settings at once, because that makes a mismatch harder to find.
Choose by compatibility, not by protocol reputation
If your provider supplies only one protocol for a particular server, use that protocol. If both VMess and Trojan are available, compare the actual connection details and confirm that each option is supported for your account and intended device. The label by itself cannot establish that one option will be faster or more reliable on your network. A fair comparison requires valid configurations for both and tests under similar network conditions.
When testing two supplied entries, keep the test controlled. Use the same device, network, destination, and routing setup; test at different times if the connection may be affected by congestion; and record whether the failure occurs during connection, name resolution, or page loading. A single short test is not enough to draw a general conclusion about a protocol.
“Which one is faster?”
There is no dependable answer from the protocol name alone. If your provider supplies both, test each valid entry on the same device and network, with the same routing mode, and compare repeated results rather than one brief test.
“Can I switch the Type on my existing entry?”
Only if the connection details you have are for the new protocol and you update all the required fields accordingly. Changing Type alone does not change the server configuration. Keep the original entry until the replacement has been tested.
“The server uses port 443. Does that mean I should choose Trojan?”
No. A port number does not identify the protocol by itself. Check the protocol and other parameters supplied for that server; do not infer the type from a familiar port.
Bottom line: match the complete configuration
Start with the protocol named in your existing connection details, then verify every required field. Consider another option only when your provider confirms it is supported and supplies its matching parameters.
Troubleshoot a failed connection in a useful order
If the entry does not connect, first identify where the failure happens. A server that cannot establish a connection points to a different problem from a connection that appears active but cannot load a website. Avoid replacing the protocol type as a first response; that can introduce a new mismatch without addressing the original cause.
- Connection fails immediately: Recheck the protocol type, address, port, authentication value, and any required transport or TLS settings. Compare the saved entry with the original details character by character, paying attention to spaces and copied punctuation.
- Connection appears active, but requests fail: Check the selected Home entry, Global Routing mode, active Config, and applicable rules. A routing rule may send a request somewhere other than the path you expect.
- Some sites work and others do not: Check whether the affected requests match different rules or use different DNS behavior. Test one destination at a time and note the result before changing the configuration.
- A subscription entry changes after refresh: Check whether the entry is managed by the subscription. If so, avoid treating a locally edited copy as the source of truth; confirm the supported settings with your provider.
For a useful report, note the device platform, the protocol label, the stage where the test fails, and the exact non-sensitive error text. Redact server addresses if they identify a private account, and always hide passwords, UUIDs, tokens, and complete subscription URLs. If the details are incomplete or the provider does not confirm support for a protocol, request clarification instead of trying unrelated parameters.