v2rayNG, Hiddify or NekoBox: “context deadline exceeded”
VLESS + Reality troubleshooting
Updated
What you see
You run the delay test in v2rayNG, NekoBox or Hiddify and get an error instead of a time in milliseconds — or the profile connects and pages just spin. The error usually reads:
context deadline exceeded
What it means
The app sent a small test request through your server and gave up waiting for the answer. “Context deadline exceeded” is how Go programs — Xray and sing-box are both written in Go — say a timer ran out. It doesn't say where the request got stuck: it may never have reached the server, the server may have turned it away, or the server may not be able to reach the internet itself. Work through the causes from your side outwards.
Quick fix
Check that the server answers on its port (usually TCP 443) from your device. If it does, delete the profile and import the current link from the server, so every setting matches, and update the app.
Causes and how to fix them
1. The server's port can't be reached
Test the port from the device that fails — in PowerShell on Windows:
Test-NetConnection 203.0.113.24 -Port 443
On macOS or Linux:
nc -vz 203.0.113.24 443
If that fails too, the problem is between you and the server: a firewall at your hosting company, the server's own firewall, or Xray not running. On the server:
sudo systemctl status xray sudo ss -tlpn | grep :443 sudo ufw allow 443/tcp
2. A Reality setting doesn't match
If the port answers but the test still times out, your link's public key (pbk), short ID (sid), server name (sni), flow or transport probably differs from the server's. Reality doesn't send back an error for that. It quietly passes you on to the website it imitates, and the test request waits until it times out. Delete the profile and import the current link rather than editing fields by hand.
3. The server can't reach the internet
Your request may arrive fine and still go nowhere, because the server can't pass it on: broken DNS on the server, or an outbound block at the host. Log in to the server and check it can load a website itself:
curl -sI https://www.google.com | head -1 cat /etc/resolv.conf
If curl hangs or says it can't resolve the host, fix the server's DNS or networking first.
4. Your network blocks the server
If the same link works on another network — mobile data instead of Wi-Fi, or a friend's phone in another country — the network you're on is blocking the server's IP address or its traffic. Try the XHTTP transport, which looks more like ordinary HTTPS, or a server with a different hosting company.
5. The test is failing, not the connection
The delay test fetches one fixed web address through the server; v2rayNG lets you change it in Settings. If websites load but the test fails, the test address is the problem. Check the app's routing mode too: rules that send everything direct, or block it, make the test meaningless.
Using Nullsify?
Nullsify builds every VLESS link from the server's live settings — keys, short ID, server name, flow and transport — so a link from Get Config always matches. If a fresh link still times out, check that TCP 443 is open in your hosting company's firewall; the setup guide for your provider shows where.
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
- “failed to dial” / TLS handshake timeout VLESS + Reality
- “REALITY: processed invalid connection” VLESS + Reality