The big win of self-hosting is a private line that oversold provider plans can't slow down. The lowest-hassle setup today is VLESS + Vision + REALITY, with no domain or certificate to buy.

Prerequisites

  • An overseas VPS that can directly reach the site you'll borrow.
  • Xray-core installed — an official one-line script or a manual Xray-linux-64.zip both work.
SponsoredWhere does the subscription link come from?Our partner provider gives you 1 GB of high-speed Hong Kong data at signup — import it in one click.Get high-speed nodes

Generate the parameters

xray uuid            # generate a UUID
xray x25519          # generate a REALITY key pair

Server inbound essentials

  • Protocol vless, client flow: xtls-rprx-vision.
  • security: reality, dest pointing at a major TLS 1.3 site (e.g. port 443 of a well-known site), serverNames set to that site's domain.
  • Fill in the privateKey and shortIds from the previous step.

Matching client

Put the UUID, public key, serverName (SNI), shortId and flow into a VLESS node in v2rayN. Every parameter must correspond exactly — one wrong value and the handshake fails.

Pick a borrowed target your VPS can reach directly and that is unlikely to be blocked — a poor choice leads to unstable connections or targeting.