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.zipboth work.
Generate the parameters
xray uuid # generate a UUID
xray x25519 # generate a REALITY key pairServer inbound essentials
- Protocol
vless, clientflow: xtls-rprx-vision. security: reality,destpointing at a major TLS 1.3 site (e.g. port 443 of a well-known site),serverNamesset to that site's domain.- Fill in the
privateKeyandshortIdsfrom 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.