TürkiyeVPS

VLESS Reality SNI and Target: Which Site and How to Test It

What the target site (Target / dest) and SNI do in a Reality connection, what makes a good target, how to test it on the server with xray tls ping and how to change it in 3x-ui.

4 min read

When you set up a VLESS + Reality connection you meet two fields: Target (formerly dest) and SNI (serverNames). This guide explains what they do, how to choose a good target site and how to test your choice on the server. If VLESS and Reality are new to you, start with what is VLESS.

What do Target and SNI do?

With Reality your server does not use a certificate of its own; it borrows the TLS handshake of a real, well-known website. When the client connects, it sends that site's name as the SNI in the TLS message. Clients with the right key reach your server; a connection without the key is passed on to the real site you set as Target and gets that site's answer. That is why you do not need to buy a domain or a certificate.

  • Target: written as site.com:443; the real site the server forwards unrecognised connections to.
  • SNI: the site name the client sends. It must be in the server's SNI list and match the sni= parameter in the link.

What makes a good target site

The Xray documentation and community experience agree on these points:

  1. It supports TLS 1.3 and HTTP/2 (h2). Reality requires TLS 1.3.
  2. The domain does not redirect. If the bare domain redirects elsewhere, use the final address directly.
  3. It is not behind a CDN such as Cloudflare. The Xray documentation warns that with a CDN-fronted target your server can effectively become a port forwarder for that CDN and be used by others.
  4. It is close to your server and fast. A target reachable from your server with low latency looks more natural.
  5. It is reachable on your network. Imitating a site that is blocked in your country makes no sense.

There is no "best SNI for everyone"; instead of copying lists, verify your own choice with the test below.

Test on the server with xray tls ping

Xray's own tls ping command shows how a site answers TLS. On servers with 3x-ui the Xray binary sits in the panel's folder:

/usr/local/x-ui/bin/xray-linux-amd64 tls ping www.example.com

You should see support for TLS 1.3 and h2 in the output. If the command fails or answers very slowly, try another site. For a rough latency figure from the server you can also use curl -so /dev/null -w '%{time_connect}\n' https://www.example.com.

Changing Target and SNI in 3x-ui

  1. Open the panel through an SSH tunnel (steps in our 3x-ui VLESS Reality setup guide).
  2. Edit the VLESS inbound in the Inbounds list.
  3. In the Reality section set Target to new-site.com:443 and SNI to new-site.com. Remove the old name from the SNI list if needed.
  4. Save, then take the new link or QR code from the client row, delete the old profile in your app and add the new one.

Note for VLESS VPS users: your VLESS VPS comes with a working target site; you do not have to change it. If you do, the link in our client panel keeps showing the values from installation; take the current link from the 3x-ui panel. Reinstalling the server from the panel restores the original settings.

Frequently Asked Questions

Does changing the SNI prevent blocking?

It does not guarantee it. On some networks a different target site helps; on others the block is at the IP address level and the SNI makes no difference. To narrow down connection problems step by step, see our VLESS not connecting guide.

Can I use my own domain as the SNI?

Reality is designed to use another real site's handshake; if you have your own domain and certificate, a classic TLS setup suits you better than Reality.

Can Target and SNI be different?

Usually you enter the same site. The SNI must be a name covered by the Target site's certificate; otherwise connections without the key get an invalid answer.

Lawful use

You manage the server; use it in line with the laws of your country and our terms of service.