Updated

What you see

The AmneziaVPN app says it can't reach the server, stays on “Connecting”, or connects for a moment and drops — often after weeks of working fine.

What it means

The app sent its handshake and got nothing back. When a setup used to work, the cause is usually a change on the server's side — it restarted without bringing the VPN back, its IP address changed, or a firewall changed — far more often than a problem in the app. If it has never worked, start with the AmneziaWG won't connect page instead.
Quick fix
Log in to the server and check the VPN is running. If you set it up with the AmneziaVPN app, it runs in Docker: sudo docker ps -a should list a container whose name starts with amnezia-. If it's stopped, start it again.

Causes and how to fix them

1. The server restarted and the VPN didn't come back

After a reboot, maintenance by your host or an update, the VPN may not start again. For a server set up by the AmneziaVPN app, look for its containers and start the stopped one (amnezia-awg is the AmneziaWG one):
sudo docker ps -a | grep amnezia
sudo docker start amnezia-awg
If AmneziaWG is installed directly rather than in Docker, as on Nullsify servers, check the interface instead:
sudo awg show

2. The server's IP address changed

Some hosts give a server a new IP address when it's rebuilt, or when it's stopped and started without a reserved address — AWS does this unless you attach an Elastic IP. Your config still points at the old one. Compare the address in the config's Endpoint line with the server's current IP, and reserve a static address at your host if it offers one.

3. The port is closed

Don't assume the port is 51820: read it from the Endpoint line in your config (the number after the colon). That UDP port has to be open in your hosting company's firewall and on the server. For example, for port 51820:
sudo ufw allow 51820/udp

4. The app is out of date

Newer AmneziaWG versions added settings (S3, S4 and I1–I5) that older apps don't understand. If the server was updated or reinstalled recently, update the AmneziaVPN app from your app store or amnezia.org and import the config again.

5. Your network started blocking it

If the server works from another network, the one you're on is blocking UDP or recognizing the traffic. AmneziaWG's disguise makes that less likely than with plain WireGuard, but not impossible. VLESS + Reality over TCP 443 is the fallback.

6. It's a free server you don't control

If you're connecting to a free server run by someone else — not one you set up — it may be overloaded, blocked or gone, and there's nothing to fix on your device. A server of your own isn't shared with other users.

Using Nullsify?

Nullsify installs AmneziaWG directly on your server and shows each server's live status in the dashboard, so you can see whether the server itself is down before you start on the app. A config from Get Config always carries the server's current address, port, keys and obfuscation values.
Free for 1 server. Bring your own VPS — Nullsify configures WireGuard, AmneziaWG or VLESS on it for you.

Related problems

Read more