The install finished, the server is running, and your phone still can't connect, or connects and loads nothing. Resist the urge to change settings at random. Work through these checks in order; each rules out one layer, and the first one that fails is your answer.
1. Is the VPN service running?
On the server:
sudo systemctl status xray
sudo wg show
sudo awg show
Use the one that matches your protocol: xray for VLESS, wg show for WireGuard, awg show for AmneziaWG. A stopped or failed service is the whole problem. For Xray, see the service won't start.
2. Is it listening on the right port?
sudo ss -tulpn | grep -E '51820|443'
WireGuard and AmneziaWG use UDP 51820, VLESS uses TCP 443 by default. If the port shows another program, you have an address-in-use conflict.
3. Do your device's packets reach the server?
Watch for them while your device tries to connect:
sudo tcpdump -ni any udp port 51820
Nothing arriving means a firewall or a wrong IP in the config, not a VPN problem. How to check whether your VPN port is open explains all three firewall layers.
4. Does the handshake complete?
For WireGuard and AmneziaWG, sudo wg show (or awg show) lists each peer and when it last completed a handshake. A recent time means keys and ports are fine. "No handshake" with packets arriving points to mismatched keys or the wrong app, so get a fresh config. For the typical causes, read handshake did not complete.
5. Is it the right app for the protocol?
- AmneziaWG configs need the AmneziaVPN app. The plain WireGuard app rejects them.
- VLESS needs an Xray-based app such as v2rayNG, Hiddify or Streisand.
6. Connected, but no internet?
A completed handshake with nothing loading means the server isn't passing your traffic on. Check forwarding and NAT:
sysctl net.ipv4.ip_forward
sudo iptables -t nat -L POSTROUTING -n -v
Forwarding should print 1, and there should be a MASQUERADE rule for the VPN's subnet. A firewall dropping forwarded traffic, missing DNS and a too-large MTU are the other causes. All five are covered in connected but no internet.
7. Does it work on one network but not another?
Try your phone's mobile data, then home Wi-Fi. If it works on one, your config and server are correct and the other network is blocking the protocol. Switching to AmneziaWG, or to VLESS with Reality if UDP is blocked entirely, is the fix. WireGuard, VLESS and AmneziaWG compared shows how they differ.
8. Does it connect, then die?
If it works for a few minutes and then stops, see stops working after a few minutes. The usual causes are a network recognizing the VPN, or an idle connection being dropped.
When everything checks out
If the service runs, the port is reachable, the handshake completes and traffic flows, the VPN works, and what's left is verifying it. How to check your VPN is actually working covers IP, DNS and leak tests.
You can also search the full Fix my VPN section by error message.