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
| Protocol | Transport | Security |
|---|---|---|
| VMess | TCP or WebSocket | None or TLS |
| Trojan | TCP or WebSocket | TLS |
VMess works with both current servers that require AEAD and older V2Ray servers. The app detects which one your server needs.
Import the link
- Copy the
vmess://ortrojan://link. - Open 91VPN, tap Nodes, then tap Paste.
- 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:
| Field | Meaning |
|---|---|
add, port | Server address and port. Behind a CDN this may be a CDN IP. |
id | Your user ID (UUID). |
net | tcp or ws (WebSocket). |
host, path | WebSocket Host header and path, for example /ray. |
tls, sni | tls 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.
Free VMess and Trojan client for iPhone. Your own servers have no time limit.
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