VLESS protocol: how it works, Reality, Vision and VLESS Encryption

VLESS is a light proxy protocol from the V2Ray and Xray family: the client sends a short header with its user ID, a UUID, and the address it wants, and then the data goes through as it is. VLESS encrypts nothing by default, so on the open internet it runs inside TLS or Reality, which encrypt the stream and make it look like a visit to a website. Since September 2025 Xray also offers optional VLESS Encryption, a post-quantum handshake built into the protocol.

Updated

On this page

Facts

What it is

Proxy protocol for TCP and UDP traffic

Since, by

2020, RPRX in V2Ray; developed in Xray since late 2020

Transport

TCP (RAW), XHTTP, gRPC, WebSocket, HTTPUpgrade, mKCP

Encryption

None by itself; TLS or Reality; optional VLESS Encryption

To the network it looks like

With TLS or Reality, an HTTPS connection to a website

Usual port

Any; 443 is the usual choice

Comes as

vless:// link, subscription, Xray or sing-box JSON

License

Xray-core: MPL-2.0

Latest release

Xray-core v26.11.9, November 9, 2026

In Veli

Windows, macOS, Linux, Android · link

Own server from the app

Yes

Versions and history

  1. 2020

    Proposed and added to V2Ray

    In June 2020 RPRX proposed a simple protocol that leaves security to TLS, as VMess over bare TCP was no longer trusted (V2Ray issue 2526). It shipped as VLESS PREVIEW in v2ray-core v4.27.0 in August.

  2. Nov 2020

    Xray-core 1.0

    Project X released Xray-core 1.0, a heavily changed fork of v2ray-core, on November 25, 2020. VLESS has been developed there since.

  3. Oct 2022

    XTLS Vision

    Xray 1.6.2 was the first release with the xtls-rprx-vision flow, which pads the inner TLS handshake and stops encrypting TLS twice. Xray 1.8.0 in March 2023 updated its padding.

  4. Mar 2023

    REALITY

    Xray 1.8.0 (March 9, 2023) brought REALITY: the TLS handshake of a real third-party site, with no domain or certificate of your own. The link fields pbk, sid and spx followed on March 19.

  5. 2024

    SplitHTTP becomes XHTTP

    A new HTTP transport arrived as SplitHTTP in Xray 1.8.16 (June 2024) and became XHTTP in v24.10.31. Xray version numbers are release dates since September 2024.

  6. Sep 2025

    VLESS Encryption

    Merged on August 28, 2025 as PR 5067 and released in Xray v25.9.5: an optional ML-KEM-768 and X25519 handshake with 0-RTT, set by the mlkem768x25519plus string.

How VLESS works

The client sends a request header: one byte of protocol version, the 16-byte UUID, a small block of add-ons where the flow setting travels, a command byte (0x01 TCP, 0x02 UDP, 0x03 Mux), the port and the destination address. The server answers with a version byte and its own add-ons, and then the bytes go through unchanged. That is the whole protocol.

The UUID is the login and the password at once: the server lets in only the IDs on its list. There is no clock check as in VMess, and no encryption: with security=none the header crosses the network in clear text, UUID and destination included.

Protection against probing comes from the layer around VLESS too. Over TLS, Xray's fallbacks hand any connection that fails the VLESS check (a first packet shorter than 18 bytes, a wrong version or an unknown UUID) to an ordinary web server, so a stranger sees a website. Reality does the same with someone else's real site.

Transport and security: what goes around VLESS

A VLESS server is described by three choices: the transport, the security layer and the flow. In a link they are type, security and flow. VLESS itself stays the same, and what a network sees depends on the first two.

  • none

    What it givesNo protection: the header and the data can be read on the way

    What it needsOnly for tests or inside another encrypted layer

  • tls

    What it givesOrdinary TLS, as on any HTTPS site; with ws, gRPC, HTTPUpgrade or XHTTP it can sit behind a CDN

    What it needsA domain and a certificate; the name goes into sni

  • reality

    What it givesThe TLS handshake of a real third-party site; whoever probes the server sees that site

    What it needsThe server's public key (pbk) and a short ID (sid); RAW, XHTTP or gRPC only, no CDN

  • tcp or raw — a bare TCP stream; Xray renamed it RAW and links carry either word. The transport of Vision with TLS or Reality.
  • xhttp — Xray's HTTP transport, called SplitHTTP until October 2024. Upload and download can go as separate requests; works with TLS, Reality and CDNs. sing-box doesn't have it, mihomo does.
  • grpc, ws, httpupgrade — gRPC, WebSocket and its lighter relative, the usual ways through a CDN. Current Xray still runs them but marks them deprecated in favour of XHTTP.
  • kcp — mKCP over UDP. Rare, and missing from sing-box.
  • http and quic — old HTTP/2 and QUIC transports that Xray has removed; sing-box still opens them.

The Vision flow

Inside a proxy most traffic is already TLS: the HTTPS sites you open. Through a TLS proxy that makes TLS inside TLS, and the sizes and order of the inner handshake packets form a pattern a filter can learn. The xtls-rprx-vision flow pads the first packets of each connection, and once the inner TLS 1.3 session is up, Xray passes its already encrypted bytes on directly instead of encrypting them twice.

Vision needs RAW with TLS or Reality, or VLESS Encryption on any transport, and the flow must match the server's user entry. Plain Vision blocks UDP to port 443, so browsers fall back from QUIC to HTTPS over TCP; xtls-rprx-vision-udp443 lets QUIC through for programs that need it.

VLESS Encryption: the mlkem768x25519plus string

Since Xray v25.9.5 VLESS can encrypt by itself, with no TLS or Reality underneath. The handshake is a hybrid post-quantum key exchange, ML-KEM-768 plus X25519, with forward secrecy; the server is authenticated by an X25519 or ML-KEM-768 key, and later connections can reuse a ticket for 0-RTT. The setting is one string of blocks joined by dots: decryption on the server, encryption on the client; xray vlessenc prints a matching pair. The keys below are made up.

config.json
{
  "decryption": "mlkem768x25519plus.native.600s.C326iHemCwae7gqLpxZ-ebII59KPG0RZQ4XJijcBvTw",
  "clients": [
    {
      "id": "b084aee0-3421-4499-a473-f4ecbba7b3b8",
      "flow": "xtls-rprx-vision"
    }
  ]
}
config.json
{
  "address": "203.0.113.10",
  "port": 443,
  "id": "b084aee0-3421-4499-a473-f4ecbba7b3b8",
  "encryption": "mlkem768x25519plus.native.0rtt.GZuLn9qSzR1Zr-w9DGWxJFn8HMqM1lvqw3i_SBbAMhA",
  "flow": "xtls-rprx-vision"
}
  • mlkem768x25519plus — the handshake, the only method so far; the same on both sides.
  • native, xorpub or random — the look: records with a TLS-like header, the same with the public keys masked, or bytes that look entirely random. Must match.
  • 600s on the server — the 0-RTT ticket lives a random time between half and all of it; 0rtt or 1rtt on the client — use the ticket, or always do the full handshake.
  • Padding — optional blocks like 100-111-1111.75-0-111.50-0-3333: probability, minimum and maximum of junk bytes and delays. Without them Xray uses this default.
  • The last block — the server's X25519 private key or ML-KEM-768 seed; on the client, the matching X25519 password or ML-KEM-768 client key. In a link the client string replaces none in encryption=.
  • Limits — fallbacks can't be combined with decryption. sing-box has no VLESS Encryption; mihomo has an encryption field for it.

A vless:// link, field by field

A VLESS link is a whole profile in one line: vless://ID@address:port?parameters#name. Below is a typical Reality link. The address is from a range reserved for documentation, and the ID and keys are made up.

Example
vless://b084aee0-3421-4499-a473-f4ecbba7b3b8@203.0.113.10:443?encryption=none&flow=xtls-rprx-vision&security=reality&sni=www.example.com&fp=chrome&pbk=eGjsq-1bTItSi448hnpbXv6_8OamCZWoemCtrZMB3KU&sid=07759ef874c6d4f8&type=tcp#Server-1
  • b084aee0-3421-4499-a473-f4ecbba7b3b8 — the UUID, your user ID on the server.
  • 203.0.113.10:443 — the server's address and port. A domain name works too; 443 is the usual HTTPS port.
  • encryption=none — VLESS Encryption is off, as in almost every link; otherwise the mlkem768x25519plus client string stands here.
  • flow=xtls-rprx-vision — the Vision flow; it must match the server.
  • security=reality — Reality protects and disguises the connection.
  • sni=www.example.com — the site name in the handshake: for Reality, the site it borrows; for TLS, your own domain.
  • pbk and sid — Reality's public key and short ID. Both come from the server, and one changed character breaks the connection.
  • fp=chrome and type=tcp — the browser whose TLS fingerprint the client copies (Reality needs one) and the transport. A WebSocket link with TLS has security=tls&type=ws&host=cdn.example.com&path=%2Fws instead, and no flow, pbk or sid.
  • #Server-1 — only the name the client shows in its list.
  • allowInsecure — no longer read by Xray: a certificate is pinned by its SHA-256 in pcs instead.

What a censor sees

With security=none, everything: the UUID and the destination sit in the first packet. With TLS or Reality the network sees an encrypted connection, the server name in the handshake, the client's TLS fingerprint and the server's IP. VLESS itself stays hidden; filters work on that TLS layer and the pattern inside it.

Fingerprints of the client. In October 2022 more than 100 users in China reported servers of TLS-based tools blocked, VLESS among them: first the port, and after a port change sometimes the whole IP (net4people BBS 129, opened by GFW Report). GFW Report suspected, without measuring it, the TLS ClientHello of the clients and suggested uTLS: the fp field in links picks such a browser fingerprint.

TLS inside TLS. Xue, Kallitsis, Houmansadr and Ensafi (USENIX Security 2024) ran a detector of handshakes nested inside proxy connections for 30 days from March 2023 at Merit, an ISP with over a million users. It flagged 74.8% of VLESS over TLS flows and 70.7% of VLESS over WebSocket over TLS, with 0.0544% false positives. Against XTLS Vision, which pads early packets to 900–1400 bytes, a classifier tuned to packet direction flagged 51.3%, at 0.1989% false positives. Multiplexing lowered detection most. The browser used TLS 1.2, and Reality wasn't tested.

Blocking without recognizing VLESS. In June 2025 net4people BBS 490 described a method seen on Russian networks, mostly mobile: a TLS connection to a foreign data center address freezes after about 15–20 KB from the server, whatever runs inside. VLESS Reality was hit like everything else, while a Reality target taken from the filter's list of allowed names got through.

What is not known: we found no published study that tells a Reality handshake apart from a real visit to the borrowed site. Reports of blocked Reality servers so far point at addresses, volumes and traffic patterns, not at a broken disguise.

Strengths and weaknesses

Strengths

  • Almost no overhead: a short header and no second layer of encryption under TLS
  • No clock check, so a wrong device time doesn't break it
  • Works with Reality and the Vision flow: no domain or certificate needed
  • Many transports, and with TLS it can sit behind a CDN
  • Understood by Xray, sing-box, mihomo and most clients built on them

Weaknesses

  • No protection by itself: with security=none the UUID and traffic are readable
  • Doesn't hide the server's IP: a blocked address stays blocked
  • Many combinations: sing-box opens neither XHTTP nor VLESS Encryption links
  • TLS inside TLS remains a pattern: research flagged about 3 of 4 flows without Vision
  • Not a VPN by itself: a client app has to capture the device's traffic

Where it works

Programs and servers from our comparison tables that list this protocol.

Clients

  • Happ
  • Hiddify
  • v2RayTun
  • INCY
  • Karing
  • v2rayNG
  • v2rayN
  • NekoBox for Android
  • NekoRay
  • Throne
  • V2Box
  • AmneziaVPN
  • Clash Verge Rev
  • Clash Party
  • FlClash
  • Shadowrocket
  • Stash
  • mihomo
  • sing-box
  • podkop
  • PassWall
  • PassWall 2
  • OpenClash

Servers and panels

  • 3X-UI
  • Marzban
  • Remnawave
  • S-UI
  • Hiddify Manager

Compare these programs

Sources

How we write and check

In Veli

VLESS in Veli: links, configs or your own server

Veli opens vless:// links, subscriptions that contain them, and Xray or sing-box JSON configs on Windows, macOS, Linux and Android. A link goes into one field, Profiles → Add: the app works out that it is VLESS by itself and makes a profile named after the link, and several links can go in at once, one per line. On a computer VLESS runs on the sing-box or Xray module, and the app offers to install the one it needs; Xray only for links sing-box can't open, such as xhttp. On Android: Profiles → Add, then “Continue” or “Scan a QR code”.

No server yet? “Your own server” installs VLESS Reality with the Vision flow on your VPS over SSH, from the app: Profiles → Add → “Your own server”, the server's address and password, “Add the server”; then select VLESS Reality on the server screen and click the install button. The app makes the keys by itself and gives every device its own UUID; “Add a device” shows a QR code and a link like the one above. The “Apps and sites” rules work with VLESS by site and by app.

Questions

Is VLESS a VPN?

Not on its own: it is a proxy protocol. A client app turns it into a VPN by sending the device's traffic through the VLESS connection.

Does VLESS encrypt traffic?

Not by default, which is what encryption=none means: TLS or Reality encrypts. Since Xray v25.9.5 there is optional VLESS Encryption, a mlkem768x25519plus string in place of none.

What is VLESS Reality?

VLESS with security=reality: the connection starts with the TLS handshake of a real third-party site, so the server needs no domain or certificate and shows that site to anyone who probes it.

How do I configure VLESS Encryption?

Run xray vlessenc: it prints a decryption string for the server and a matching encryption string for clients. Xray and mihomo clients support it, sing-box doesn't.

What is the difference between VLESS and VMess?

VMess encrypts by itself and mixes the time into its login, so a clock off by more than 120 seconds breaks it. VLESS leaves encryption to TLS, Reality or VLESS Encryption and ignores the clock.

Why doesn't my vless:// link connect?

Most often the link was cut off when copied, the server changed its key or UUID, the flow doesn't match, or the network blocks the server's address. Xray also refuses old type=http and type=quic links.