Protocols

VLESS + REALITY: how it works and which app to use

VLESS + REALITY combines two technologies from Project X, the team behind Xray: VLESS, a lightweight proxy protocol, and REALITY, which borrows the look of a TLS connection to a regular website as its disguise. This reduces the typical signs of a protected proxy and makes it harder to recognise, which is why people use it on networks that detect and block VPNs. The server needs no domain or certificate of its own, and anyone who connects without the right key simply sees the real website.

Published 26 November 20269 min readBy the Phoenix VPN team

VLESS + REALITY illustration: a connection passing through an ordinary HTTPS website with a padlock
On this page

How VLESS + REALITY works

The setup has two layers. VLESS carries your traffic and tells the server where to send it. REALITY, underneath, encrypts the connection and shapes what it looks like to anyone watching the network.

VLESS: the proxy layer

VLESS is a lightweight, stateless proxy protocol maintained by Project X, the open-source project behind Xray-core. Its header is small: a version number, your user ID (a UUID) and the address you want to reach, followed by your data. The server checks the UUID and forwards the traffic (Xray VLESS docs).

VLESS does not encrypt your traffic by default. It is designed to run inside an outer security layer such as TLS or REALITY, which does the encryption. Recent Xray versions add an optional VLESS Encryption mode, but it is off by default and not needed for a REALITY setup (Xray transport docs).

REALITY: a borrowed TLS handshake

Every HTTPS connection starts with a TLS handshake. The client’s first message, the ClientHello, usually names the site it wants in readable form (the SNI). A normal TLS proxy needs its own domain and certificate, and both can be looked up, scanned and blocked.

REALITY removes that need. You point your server at an existing website, called the target (the target setting, formerly dest, plus a list of accepted serverNames). Your client then opens what looks like a TLS 1.3 connection to that website, and the server borrows the site’s handshake. There is no domain to buy and no TLS server to configure (REALITY README).

How the server recognises your client

The server holds an x25519 private key, generated with xray x25519. Your client holds the matching public key (password in current Xray configs, publicKey in older ones) and a short ID, a hex string the server can use to tell clients apart.

When your client connects, it combines the server’s public key with the temporary key it creates for each TLS 1.3 handshake, producing a secret that only the real server can also calculate. The client uses it to encrypt a small token, containing a version number, the current time and your short ID, into the ClientHello’s session ID. In ordinary TLS 1.3 traffic this field is usually filled with random bytes, and to anyone without the private key the token looks the same (Xray-core client code).

The server decrypts the token and checks the short ID. If it matches, the server finishes the handshake itself and sends a temporary certificate that only your client can verify. TLS 1.3 encrypts certificates, so an observer cannot see which certificate you received.

What a probe sees

If the token is missing or wrong, REALITY forwards the connection to the real target website (REALITY settings). Curious visitors, scanners and active probes sent to check your server all get the site’s genuine certificate and pages, so your server looks like a route to an ordinary website.

Your client has a safeguard too: if it receives the real certificate instead of the temporary one, for example because the network redirected the connection, it does not send your traffic. It browses the site like an ordinary visitor instead (the spiderX setting, described in the REALITY README).

Your connection

  1. Your deviceVLESS inside REALITY
  2. The networkSees a TLS 1.3 connection to a well-known website
  3. REALITY serverChecks the key hidden in the handshake
  4. InternetYour traffic goes on from here

Someone checking the server

  1. A probeConnects without the key
  2. REALITY serverNo key: passes the connection through
  3. The real websiteAnswers with its genuine certificate and page
How REALITY looks from the outside: your connection and a probe both see an ordinary website.

Browser fingerprints and XTLS Vision

The way a client builds its ClientHello (which ciphers and extensions it offers, and in what order) forms a fingerprint, and software using a programming language’s default TLS library is easy to tell apart from a browser. Xray uses the uTLS library to imitate common browsers through the fingerprint setting; for REALITY, only chrome, firefox and safari are guaranteed to work. The imitation covers the ClientHello, not every other behaviour of a browser (TLS settings).

When you open an HTTPS site through any TLS-based proxy, your browser’s own TLS handshake travels inside the proxy’s TLS connection. The sizes and timing of that inner handshake form a recognisable pattern, usually called TLS-in-TLS. The XTLS Vision flow (xtls-rprx-vision) pads the inner handshake to blur that pattern. For traffic that is already TLS 1.3-encrypted, it also avoids encrypting the data a second time, which cuts overhead (Xray VLESS docs). The REALITY README advises against pairing REALITY with protocols that lack this, because their TLS-in-TLS signs are “obvious and already targeted”.

Clients usually get all of this as one share link:

vless://UUID@SERVER_IP:443?encryption=none&security=reality&sni=www.example.com&fp=chrome&pbk=PUBLIC_KEY&sid=SHORT_ID&flow=xtls-rprx-vision&type=tcp#my-server

Here sni is the target’s name, fp the fingerprint, pbk the public key and sid your short ID. Treat the link like a password: the key is technically public, but the Xray documentation says that in REALITY it should not be published.

Where it works and where it doesn’t

VLESS + REALITY tends to help on networks that recognise VPN protocols by their signatures but still let ordinary HTTPS through. That can include office, school or hotel Wi-Fi, mobile networks, and countries that filter traffic with deep packet inspection (DPI). It has clear limits, though:

  • Your server’s IP is still visible. REALITY changes what the connection looks like, not where it goes. The IP can be blocked, land on a reputation list or draw suspicion because it belongs to a hosting provider. The usual fix is a new server or IP.
  • The target site matters. The REALITY README suggests a target that supports TLS 1.3 and HTTP/2, is not just a redirect, and ideally sits close to your server. An observer can compare the name in the handshake with the IP it goes to, and a famous site’s name on a small VPS address is a hint in itself. That is why the Xray documentation recommends a target in the same network (ASN) as your server. It also warns that a target behind a large CDN can turn your server into a relay for that CDN.
  • Traffic patterns still exist. The Xray documentation notes that using TLS or REALITY does not mean proxy traffic has the same characteristics as ordinary HTTPS. Long, heavy sessions to one “website” can look unusual to systems that analyse volume and timing.
  • Allowlist networks are a different problem. Some networks only allow a list of approved destinations, sometimes called a whitelist. If your server is not on the list, no disguise gets through.

These properties apply to the VLESS + REALITY combination, not to every VLESS variant. Results depend on settings and filtering methods; masking does not hide your exit IP from websites. VLESS over WebSocket or ordinary TLS, for example, behaves differently, and the sites you visit still see your server’s address, which some services meet with extra checks.

Pros and cons

Pros

  • No domain or certificate to buy, renew or expose.
  • Looks like a TLS 1.3 connection to a real website, with a browser-like handshake, and probes see the real site.
  • With XTLS Vision, fewer TLS-in-TLS signs and low overhead.
  • Open source, with mature server software, web panels and clients for most platforms.
  • Recent Xray versions use post-quantum key exchange when the target site supports it (REALITY settings).

Cons

  • The server’s IP can still be blocked, and the disguise does not change it.
  • Choosing a good target takes care, and a poor choice can stand out.
  • It runs over TCP, so heavy packet loss usually hurts it more than UDP-based protocols such as Hysteria2.
  • The key, short ID, server name and flow must match the server’s settings exactly.
  • The project moves fast: field names and recommended settings change, so older guides go stale.
  • Self-hosting means you handle the server, updates and IP changes yourself.

Set up VLESS + REALITY yourself or use an app

Running VLESS + REALITY yourself is a good option if you like running servers: you control every setting and learn how it all fits together. The Xray-core README lists the official install script, web panels and clients. Here is what each route takes.

Set it up yourself Phoenix VPN
Server Rent a VPS outside the restricted network and keep it patched Phoenix’s dedicated servers, nothing to rent
Software Install Xray-core, or a web panel such as 3x-ui that manages it The Phoenix VPN app
Keys and config Generate x25519 keys and short IDs, pick a target site, set the flow, share vless:// links Nothing to configure
Client app Install a client such as v2rayN, v2rayNG, Hiddify or Shadowrocket, import the link, keep it updated VPN apps for Windows, Android and Android TV; iPhone/iPad and macOS coming soon
When the IP gets blocked Move to a new server or IP, update the config and send new links to every device Smart Connection checks which protocols get through on your network, picks the best country and connects; a blocked server IP is replaced on Phoenix’s side
Other protocols Each extra protocol, such as Hysteria2 or WireGuard, means more server setup and another client profile VLESS + REALITY, Hysteria2, Shadowsocks and WireGuard, all in every plan
Logs You decide what your server logs; you also rely on your hosting provider No activity logs: browsing history, DNS queries and traffic content are not stored
Devices As many as your server and setup handle Ember 3, Phoenix 6, Inferno 10
Time to connect Often an hour or more the first time, depending on experience Install the app, then one tap

If you go the DIY route, our guide to VLESS clients covers the main apps.

VLESS + REALITY compared with other protocols

No protocol wins on every network. The table shows typical behaviour; real results depend on configuration and on the network. For a broader overview, see VPN protocols compared.

Protocol Transport What a network observer sees On unstable or lossy networks Best for
VLESS + REALITY TCP A TLS 1.3 connection to a well-known site’s name, with a browser-like handshake; the IP is still your server’s Fine on stable links; as TCP, it typically slows down under heavy packet loss Networks that spot VPN and proxy protocols with DPI but allow ordinary HTTPS
Hysteria2 UDP (QUIC) Traffic that looks like HTTP/3; random-looking UDP if obfuscation is enabled Typically strong: built on a customised QUIC designed for unreliable, lossy links Speed on lossy, long-distance or mobile links where UDP is not throttled
Shadowsocks 2022 TCP and UDP A stream of random-looking bytes with no recognisable protocol Light, with little overhead; behaves much like the underlying TCP or UDP Simple, low-overhead proxying where random-looking traffic is not treated as suspicious
WireGuard UDP A recognisable WireGuard handshake and packet format Generally good: a lean UDP tunnel that copes well with changing networks Speed and efficiency on networks that do not block VPNs

For each project’s own description, see Hysteria, the Shadowsocks 2022 specification and WireGuard, which says it does not focus on obfuscation.

Because no single protocol suits every network, Phoenix VPN, an obfuscated VPN for networks that block VPNs, offers four: VLESS + REALITY, Hysteria2, Shadowsocks and WireGuard, all in every plan. Smart Connection checks which protocols get through on your network, picks the best country and connects in one tap, with no server to rent and nothing to configure. To try it on your own network, the Phoenix and Inferno plans come with a 3-day free trial, and you can cancel anytime. Compare plans or download Phoenix VPN.

Frequently asked questions

Do I need a domain or TLS certificate for VLESS + REALITY?

No. REALITY borrows the TLS handshake of an existing website, so your server needs no domain or certificate of its own. You still need a server and a suitable target site that supports TLS 1.3.

Can VLESS + REALITY be detected or blocked?

Yes, it can. It makes the connection look like TLS to a regular website and shows probes the real site, but the server's IP can still be blocked, traffic patterns can be analysed, and some networks only allow approved destinations. Results depend on settings and filtering methods.

Which client apps support VLESS + REALITY?

For your own server, common clients include v2rayN (Windows), v2rayNG (Android), Hiddify (several platforms) and Shadowrocket (iPhone and iPad). If you don't want to run a server, Phoenix VPN includes VLESS + REALITY in every plan, with nothing to configure.

Is VLESS + REALITY a VPN?

Strictly speaking, it is a proxy protocol with a disguised TLS layer, not a classic VPN protocol like WireGuard. Most client apps can still send all of your device's traffic through it, so in daily use it works much like a VPN.

Is VLESS + REALITY faster than WireGuard?

Not necessarily. WireGuard is very fast and light but easy to recognise. VLESS + REALITY is built to be harder to recognise, and with XTLS Vision its overhead is low. Real speed depends mostly on the server, the route and your network.

Phoenix VPN team · Written and fact-checked by the people who build Phoenix VPN.

Skip the setup
One tap to a protocol that works

Smart Connection checks which protocols get through on your network, picks the best country and connects. Phoenix and Inferno plans come with a 3-day free trial.