How to connect a 3x-ui server on iPhone
You run Xray with the 3x-ui panel and want to use it on an iPhone. This guide shows which inbound settings 91VPN supports, how to get a client's link or subscription URL out of the panel, and what to check if it doesn't connect.
Updated December 6, 2026
Pick a supported inbound
3x-ui can create many kinds of inbound. These work in 91VPN today:
| Protocol | Settings in 3x-ui |
|---|---|
| VLESS | Transmission TCP, security Reality, and the client's flow set to xtls-rprx-vision. This is the recommended setup. |
| VMess | TCP or WebSocket, with or without TLS |
| Trojan | TCP or WebSocket with TLS |
| Shadowsocks | Method aes-128-gcm, aes-256-gcm or chacha20-ietf-poly1305 |
Not supported yet: gRPC, xhttp, HTTPUpgrade and mKCP transports, Shadowsocks 2022 methods (the 2022-blake3-… ones 3x-ui offers by default), and the WireGuard inbound. If you're creating a new inbound for an iPhone, VLESS + TCP + Reality + Vision is the best choice.
In 3x-ui the Vision flow is a per-client setting. Open the client's edit dialog and set Flow to xtls-rprx-vision. If it's empty, the link won't have flow= and 91VPN won't connect to a Reality server.
Copy a client link
- Log in to the 3x-ui panel and open Inbounds.
- Expand the inbound with the + next to it to see its clients.
- Click the QR code icon next to the client. Click the QR code to copy the link, or keep it on screen and scan it with your iPhone in the next step.
Give each device its own client. That way you can see its traffic and remove it later without changing anyone else's link.
Use a subscription instead
A subscription URL lets the iPhone pick up changes, such as a new port or key, with one tap instead of a new link.
- In Panel Settings, open the Subscription tab and turn on the subscription service. Note the port and path (by default
2096and/sub/). Save and restart the panel. - Open the client's edit dialog. It has a Subscription ID. Clients with the same ID share one subscription, so one URL can carry servers from several inbounds.
- Click the client's info icon. The subscription URL is shown there, for example
https://your-domain:2096/sub/abc123.
91VPN reads 3x-ui's standard subscription (a base64 list of links). It doesn't need the JSON subscription.
Import it in 91VPN
- Copy the link or subscription URL to your iPhone, for example through Notes or a message to yourself.
- Open 91VPN, tap Nodes, then tap Paste. To use the QR code on your computer screen, tap Scan instead.
- Select the server, go back and tap connect. The first time, iOS asks to add a VPN configuration; tap Allow.
Using your own server is free in 91VPN and has no time limit. Details for each link type are in the VLESS Reality, VMess and Trojan, Shadowsocks and subscription guides.
Troubleshooting
91VPN says "Not supported yet"
The message names the part it can't use, for example gRPC, xhttp or a Shadowsocks 2022 method. Change the inbound to one of the supported setups above, or add a second inbound for your iPhone.
The subscription URL doesn't load
Open the URL in Safari on the iPhone. If Safari can't open it either, the subscription port (2096 by default) is probably blocked by the server's firewall, or the panel wasn't restarted after turning the service on. If the panel uses a certificate, use https:// with the same domain as the certificate.
It connects but nothing loads (Reality)
Check that the client's flow is xtls-rprx-vision, that the inbound's port is open, and that the SNI in the inbound is a real site that is reachable from the server. After changing anything in 3x-ui, import the link again or update the subscription.
It worked yesterday and stopped today
Check the client in 3x-ui. It stops working when it reaches its traffic limit or expiry date, or when it's disabled. Reset the traffic or extend the date, then reconnect.
Does 91VPN send my server details anywhere?
No. Your links, subscription URL and server address stay on your iPhone. 91VPN only counts which server types are imported and whether it worked.
Other guides: Marzban on iPhone · VLESS Reality · Subscription links