Shadowrocket Protocols: A Quick Guide to Shadowsocks, VLESS, WireGuard, Hysteria2, and More

Compare seven protocols by transport, encryption, and key settings to identify a provider’s connection type and enter it correctly in Add Server.

In this guide

When adding a connection in Shadowrocket, select the Type named by your provider, then check the address, port, authentication, and transport settings. This guide is for anyone with a share link or manual settings who isn’t sure how to enter them. Use the comparison table to troubleshoot connections that fail after import.

Transport, encryption, and settings for seven protocols

The same server address can use multiple protocols, so the address or port alone won’t tell you which Type to choose in Add Server. Check the protocol name first, then enter authentication and transport settings in their respective fields.

Check Add Server settings against the server configuration
TypeTransport and encryptionKey settings beyond the address and port
ShadowsocksUse TCP or UDP as specified in the configuration; the selected encryption method protects the data.Encryption method and password. Both must match the server configuration.
VMessThe protocol has its own authentication and encryption settings; it can run over transports such as TCP or WebSocket.UUID, transport, and security settings. If the configuration uses WebSocket, check Host and Path as well.
VLESSVLESS does not encrypt payloads itself; protection depends on the outer configuration, such as TLS or REALITY.UUID, transport, and outer security settings. Enter Flow exactly as provided, if specified.
TrojanStandard configurations use TLS to protect the connection to the server.Password and the SNI provided by your service provider. Keep certificate verification enabled.
HTTP / SOCKS5HTTP proxies typically use TCP. SOCKS5 can relay TCP and, when both ends support it, UDP. Standard HTTP and SOCKS5 do not encrypt the connection to the proxy server.Use the details provided to distinguish HTTP from SOCKS5. Enter a username and password if the server requires authentication.
WireGuardCreates an encrypted IP tunnel over UDP.Your Private Key, tunnel Address, peer Public Key, and AllowedIPs. The server address and port make up the Endpoint.
Hysteria2Uses QUIC over UDP; QUIC uses TLS 1.3 for the handshake.Authentication details and the SNI provided by your service provider. Enter obfuscation settings only if the server is configured for them.
443/TCP
A common HTTPS port; Trojan can also be configured to use it.
443/UDP
Example of a port Hysteria2 can listen on
Two keys
The client configuration uses your Private Key and the peer’s Public Key separately.

Bottom line: Check whether the port uses TCP or UDP when troubleshooting.

If your provider specifies 443/UDP, switch networks on the same device and test the connection again. A website loading over 443/TCP does not confirm that the UDP path required by QUIC is available.

Identify the Type from a share link or subscription details

A share link describes one connection. A subscription URL points to a list of connections that can be refreshed. The import steps differ.

After importing, check the entry type and server address in Home. Share links, subscription URLs with tokens, and WireGuard Private Keys may contain access credentials. When sharing troubleshooting details, include only what’s needed, such as the protocol, transport type, and error message.

Add a connection manually in Add Server

These steps use the Home screen on iPhone / iPad. When entering settings manually, use the original values from your provider; don’t substitute common defaults for missing fields.

  1. Select a protocol

    Go to Home → “+” → Add Server → Type. Select the protocol specified in the server details. If the details list only TCP, WebSocket, or TLS, confirm the underlying protocol before choosing a Type.

  2. Enter the address and port

    Enter the connection destination in the address field and the listening port in the port field. Don’t append a WebSocket Path to the server address or assume the example port 443 is a default.

  3. Enter authentication details

    For Shadowsocks, check the encryption method and password. For VMess and VLESS, enter the UUID. For Trojan, enter the password. In WireGuard, enter your Private Key and the peer’s Public Key separately.

  4. Check the transport settings

    For WebSocket, enter Host and Path as specified in the configuration, such as /ws. For TLS, check the SNI provided by your service provider. The server address establishes the connection, WebSocket Host is used in the request, and SNI is used in the TLS handshake; these values may differ.

  5. Save and test

    Tap Save to return to Home. Select the entry you just added and run Connectivity Test. Record the result, then turn on the connection and test an actual request using the same site you know is accessible.

Imported but can’t connect? Troubleshoot by symptom

A successful import only means the app can read the connection details. It doesn’t confirm that authentication succeeded or that web requests are using this connection. Change one setting at a time and retest under the same conditions.

Hysteria2 times out on Wi-Fi but connects over cellular?

Keep the entry unchanged and run Connectivity Test from Home on both networks. If it consistently times out only on Wi-Fi, first check whether that network allows UDP traffic to the destination port. Don’t change Hysteria2 to the TCP port of another service.

Trojan address is correct, but why am I seeing a certificate error?

First, compare the entry’s SNI character by character with the name provided by your service provider. Then check the clock under Settings → General → Date & Time. If both are correct and the certificate error persists, ask your provider to check whether the certificate has expired or the certificate chain is incomplete.

WireGuard port is correct, but why is there no traffic?

First, compare the Endpoint and peer Public Key with the original configuration. Then check that your Address wasn’t mistakenly entered as the server address. If the tunnel has completed its handshake but the destination is still unreachable, confirm that the destination IP falls within the peer’s AllowedIPs prefixes.

Latency test succeeds, but why won’t webpages load?

Check the current mode under Home → Global Routing. Direct connects without a proxy; Config routes connections according to the active rules. Temporarily switch to Proxy, select the entry you just tested, and try the same URL again. If it works only in Proxy, switch back to Config and check whether the domain matches DIRECT, REJECT, or another policy.

Download Shadowrocket