91VPNGet the app

VMess and Trojan on iPhone

91VPN imports VMess and Trojan share links, including WebSocket + TLS servers behind a CDN. This guide shows how to add them and what each part of the link means.

Updated December 5, 2026

Supported setups

ProtocolTransportSecurity
VMessTCP or WebSocketNone or TLS
TrojanTCP or WebSocketTLS

VMess works with both current servers that require AEAD and older V2Ray servers. The app detects which one your server needs.

Import the link

  1. Copy the vmess:// or trojan:// link.
  2. Open 91VPN, tap Nodes, then tap Paste.
  3. Select the new server, go back and tap connect.

You can also tap Scan to read a QR code, or tap the link in another app to open it in 91VPN.

VMess link formats

Most panels and clients such as v2rayN share VMess as base64-encoded JSON:

vmess://eyJ2IjoiMiIsInBzIjoiTXkgU2VydmVyIiwiYWRkIjoiZXhhbXBsZS5jb20iLCJwb3J0IjoiNDQzIiwiaWQiOiIuLi4iLCJuZXQiOiJ3cyIsImhvc3QiOiJleGFtcGxlLmNvbSIsInBhdGgiOiIvcmF5IiwidGxzIjoidGxzIn0=

Decoded, the important fields are:

FieldMeaning
add, portServer address and port. Behind a CDN this may be a CDN IP.
idYour user ID (UUID).
nettcp or ws (WebSocket).
host, pathWebSocket Host header and path, for example /ray.
tls, snitls to use TLS, and the TLS server name.

The URI style vmess://UUID@host:port?type=ws&security=tls&path=%2Fray&host=example.com#Name also works.

Trojan link format

trojan://[email protected]:443?sni=example.com&type=ws&path=%2Ftrojan&host=example.com#My%20Server

Trojan always uses TLS. Without type=ws, it uses plain TCP.

Get 91VPN

Free VMess and Trojan client for iPhone. Your own servers have no time limit.

Download on the App Store

Troubleshooting

WebSocket server behind Cloudflare doesn't connect

Check the Host (host) and TLS name (sni). When the address is a CDN IP, the Host must be your domain, or the CDN can't route the request. Paths like /ray?ed=2048 are fine; the app removes the early-data part automatically.

"Not supported yet: grpc" or another transport

91VPN supports TCP and WebSocket. gRPC, HTTP/2, QUIC, mKCP and xhttp are not supported yet. Ask your provider for a WebSocket link.

It connects but has no internet

Make sure the server works in another client and that your UUID or password is correct. If you imported the server with a version older than 1.8.5, delete it and import the link again.

Can I edit the server by hand?

Yes. Tap the gear next to a VMess or Trojan server to change the address, port, TLS name or WebSocket settings, or tap Manual on the Nodes screen to add one from scratch.

Other guides: VLESS Reality · Shadowsocks · Subscription links