What is Reality in VLESS and Xray

Reality is a disguise method from Xray, most often used with VLESS. The server doesn't pose as a website with a certificate of its own — it borrows the TLS handshake of a real website that belongs to somebody else. You need no domain or certificate, and anyone who knocks on the server themselves sees that real website.

Updated

On this page

How it works

An ordinary TLS proxy, such as Trojan or VLESS with TLS, keeps its own domain and its own certificate. An observer sees that domain's name at the start of the connection and can check for themselves what stands behind it. With Reality, the name at the start of the connection belongs to somebody else — a real website picked for the disguise.

The client starts the connection like a browser opening that website and hides a tag in the handshake that only your server can check — using a key pair shared by the server and the client. If the server recognizes the tag, the VPN follows. If it doesn't, the server simply passes the connection on to the real website, which answers with its own certificate and its own pages.

For its own client, the server answers with a temporary certificate that the client verifies with the same shared key, not through a certificate authority. That is why there is no certificate to issue and no domain to buy: a Reality server is just a VPS with a public IP address and somebody else's website chosen in advance.

So active probing — when a filter connects to a suspicious server itself and looks at the answer — gets an ordinary website. This is Reality's main strength. On top of that, the client imitates the TLS fingerprint of a popular browser, so the look of its handshake doesn't stand out either.

What the server needs

  • A program that understands Reality — usually Xray — and a free port, most often TCP 443.
  • An x25519 key pair: the private key on the server, the public key with the clients. In Xray the command xray x25519 makes one.
  • A website for the disguise — dest and serverNames in the server settings. Somebody else's site, with TLS 1.3 and HTTP/2, that doesn't redirect to another domain.
  • Short IDs (shortIds) — an extra client tag. There can be several, one per device.
  • The xtls-rprx-vision flow. It removes the telltale TLS-inside-TLS pattern that would otherwise reveal a browser opening a second secure connection inside the first one.

What Reality can't do

  • It doesn't hide the server's IP address. If the address is closed off entirely, no disguise helps — you need another server.
  • The website's name and the server's address don't match. A careful filter can notice that a big website's name leads to a small hosting provider's address. So the disguise site is better not the most famous one — rather one that could plausibly live at that host.
  • It doesn't hide the volume and rhythm of traffic: a long, heavy session to one address stays just that.
  • It works over TCP only and doesn't go through a CDN: the server must be reachable directly.
  • It depends on the chosen website: if the site stops answering the server or changes its TLS settings, connections start failing. Then the disguise site is changed for another one.
  • TLS fragmentation hurts it — it breaks the handshake. It is not turned on for Reality profiles.
  • On networks that let through only allowlisted websites, even Reality won't help.

What a VLESS Reality link looks like

A Reality profile usually comes as a vless:// link. It is easy to spot: it contains security=reality. Next to it are pbk — the server's public key, sid — the short ID, sni — the disguise website, fp — the browser fingerprint, chrome for example, and usually flow=xtls-rprx-vision.

Example
vless://user-id@203.0.113.5:443?encryption=none&flow=xtls-rprx-vision&security=reality&sni=www.example.com&fp=chrome&pbk=public-key&sid=6ba85179e30d4fc2&type=tcp#reality

Nothing in the link needs editing: paste it into a client whole, with no spaces or line breaks. If the link doesn't connect, most often it got cut off when copied or the server changed its key.

In Veli

Reality in Veli — by link or on your own server

Have a vless:// link with security=reality? Paste it into Profiles → Add: the app works out that it is VLESS and says under the field what will happen. VLESS needs the sing-box or Xray module — the app offers to install it by itself. On Android it is the same: Profiles → Add, then “Continue” or “Scan a QR code”. Rules by app and site work on VLESS on both a computer and a phone.

No server yet? Profiles → Add → “Your own server”, the server's address and password, “Add the server”. On the server screen select VLESS Reality and click the install button: the app makes the keys and settings by itself. Reality goes on port 443, or on 8443 or 9443 if that is taken. “Add a device” gives a QR code for Hiddify, v2rayNG, Streisand or FoXray.

FAQ

Does Reality need a domain of my own?

No. Reality borrows the handshake of somebody else's real website, so you need neither a domain nor a certificate — only a server with a public IP address.

How is Reality different from VLESS with ordinary TLS?

VLESS with TLS needs your own domain and certificate, and the server can be checked through them. Reality shows somebody else's real website and passes everyone who doesn't know the key on to it.

Can Reality be blocked?

The server's IP address can be closed off, or only allowlisted websites let through. Recognizing Reality by its handshake alone is hard — that is what it was made for.

Reality without manual setup

Paste a VLESS Reality link into Veli, or install Reality on your own server right from the app.