Xray log: “REALITY: processed invalid connection”
VLESS + Reality troubleshooting
Updated
What you see
Your Xray server's log fills up with lines like this, sometimes several a minute:
REALITY: processed invalid connection from 198.51.100.7:51234: failed to read client hello
What it means
A connection reached your Reality port but didn't prove it was one of your clients, so Xray handled it as a stranger. That's Reality's defence working: rather than revealing that it's a proxy, the server responds the way the website it imitates would — or, if the connection isn't even valid TLS, gives up on it.
Quick fix
If your own devices connect fine, ignore it — it's the internet's scanners trying port 443. If your devices can't connect and the address in these lines is yours, your client's settings don't match the server.
Causes and how to fix them
1. Scanners and probes (harmless)
Every public server on port 443 gets constant visits from scanners and bots, and in some countries from censors actively checking whether it's a proxy. None of them can authenticate, so each is logged. Nothing needs fixing.
2. Your client's settings don't match
If the address in the log line is your own, your client's public key, short ID or server name differs from the server's. Look up your IP address with the VPN off and compare, then re-import the link from the server. To watch the log while you connect:
sudo journalctl -u xray -f
3. Something on the way alters the connection
Rarely, a network, firewall or antivirus interferes with the TLS handshake in transit, so even a correct client arrives looking invalid. If the same profile works on another network, that's the cause.
Using Nullsify?
On a Nullsify server you don't need to read Xray's logs: if a device can't connect, getting its link again with Get Config fixes mismatched settings.
Free for 1 server. Bring your own VPS — Nullsify configures WireGuard, AmneziaWG or VLESS on it for you.
Related problems
- Connected but websites don't load VLESS + Reality
- Stops working after a few minutes Any protocol