Updated

What you see

The AmneziaVPN app keeps trying to connect, or shows connected with no data coming back.

What it means

AmneziaWG is WireGuard with a disguise: junk packets before the handshake and changed packet headers. Both ends have to agree on the disguise exactly. Like WireGuard, the server stays silent when something doesn't match, so every cause looks the same from the app.
Quick fix
Import a fresh config from the server rather than editing values by hand, and update the AmneziaVPN app. If it still fails, check the UDP port is open.

Causes and how to fix them

1. The obfuscation values don't match the server

S1, S2 and H1–H4 must be identical in your config and on the server. (Jc, Jmin and Jmax only shape the junk packets your device sends, so those may differ.) If the server's settings changed after you got your config, the old config stops working. This shows the server's interface and the peers it knows:
sudo awg show

2. The app is too old for the config

Newer AmneziaWG versions added more settings (S3, S4 and I1–I5). An older AmneziaVPN app can fail on configs that use them. Update the app from your app store or amnezia.org.

3. It's not an AmneziaWG app

Standard WireGuard apps can't do the disguise. An app that imports the file but ignores the extra settings can never complete the handshake. Use AmneziaVPN, or another app that explicitly supports AmneziaWG.

4. UDP is blocked

AmneziaWG still runs over UDP — port 51820 on Nullsify servers. The same firewall checks as for WireGuard apply: open the port in your host's firewall and the server's own. And if your network blocks UDP altogether, no UDP protocol will work there; VLESS + Reality, which runs over TCP, will.
sudo ufw allow 51820/udp

Using Nullsify?

Nullsify builds each config from the server's own settings, so the values always match — as long as you use the latest one. After changing a server's AmneziaWG settings, get each device's config again with Get Config.
Free for 1 server. Bring your own VPS — Nullsify configures WireGuard, AmneziaWG or VLESS on it for you.

Related problems

Read more