Skip to content

🔁 AmneziaWG Stopped Working — Switch to XRay ​

Last updated:

If AWG no longer connects or the connection hangs, the cause is most likely the network, not the protocol. AWG runs over UDP, and some ISPs may not pass UDP traffic at all or may restrict it — by speed, by session length, or only on certain routes.

The fix is to move the server to XRay (VLESS + Reality): it runs over TCP + TLS and looks to the ISP like an ordinary HTTPS connection to a large website.

In short

Port 443 · SNI — a large foreign website for a quick start, ideally a subnet neighbour found with the scanner (or your own domain) · Fingerprint — firefox

Symptoms ​

  • The connection spins endlessly and drops on timeout.
  • AWG used to work and stopped with no configuration changes.
  • The same AWG connects on a different network (another carrier, wired internet).

The server does not answer over SSH either?

Then the protocol is not the problem — start with the step-by-step troubleshooting.

Step-by-step fix ​

  1. Update the app. Download the latest AmneziaVPN client from GitHub — this is mandatory, older versions handle XRay incorrectly.
  2. Decide whether to keep AWG. On the Start plan, delete AWG in the server settings inside the app: running two protocols at once on 1 GB of RAM is not recommended. On Basic and above you can keep AWG — XRay is installed alongside it, and you can switch between them in the app.
  3. Install XRay. Click “Add protocol” → XRay and set the masking parameters:
SettingValueComment
Port443the standard HTTPS port, anything else looks suspicious
SNIwww.nvidia.com or www.rolex.comany large foreign website reachable from Russia — details
Fingerprintfirefoxinstead of the default chrome — details

Where to find it in the app

SNI and Fingerprint are under XRay server settings → Security → Reality. Step by step — see Switch the fingerprint to firefox.

  1. Wait for the installation to finish (up to a minute) and connect with XRay selected in the protocol list.

Which SNI to choose ​

SNI is the domain your connection is disguised as. The ISP sees it at the start of the TLS handshake and compares it with the IP address the traffic actually goes to.

Do not use Russian websites

ya.ru, 2gis.ru, pochta.ru, vk.com and the like are poor masking. These sites live on Russian IPs, while your server is abroad. A “Yandex” connection going to a foreign hosting IP is an obvious mismatch, and it is the first thing DPI notices.

Pick a domain that meets three criteria:

  • Foreign and large — an international brand that naturally gets a lot of traffic from every country.
  • Reachable from Russia — opens without a VPN. A blocked site in the SNI draws attention immediately.
  • Supports TLS 1.3 and HTTP/2 — Reality will not work without it. How to check — XRay: verifying the domain.
OptionExampleMasking
🥇 Your own domain (Self-SNI)mysite.duckdns.orgbest — the IP, domain and certificate all match
🥈 A neighbour in your subnet (found by the scanner)a site from the same subnet as your serververy good — the domain and the IP come from the same network and look natural
🥉 A large foreign websitewww.nvidia.com, www.rolex.comgood enough to get started quickly
❌ A Russian websiteya.ru, 2gis.rupoor — do not use

A large site will do, but a scanner finds a better one

A large site is the quickest way to get XRay running, and it is often enough. But it is more reliable to use a domain that lives in the same subnet as your server: then the domain and the IP look natural together. The RealiTLScanner tool finds such domains.

The best option is Self-SNI

With someone else's domain there is always a mismatch: the domain points to one IP while the traffic goes to another. If you run your own domain and a decoy site on the server, there is no mismatch at all — an observer sees a domain that really lives on this IP and serves its own certificate.

Step-by-step guide with a free domain: 🔐 Self-SNI for VLESS + Reality.

Switch the fingerprint to firefox ​

The fingerprint (fp) defines which browser the client imitates in the TLS handshake. The default is chrome — almost every VPN client uses it, so it has become the most overused fingerprint. Switch it to firefox.

In the AmneziaVPN app:

  1. Open the server settings → the XRay protocol → XRay server settings.
  2. Go to Security — Reality should be selected there.
  3. In the Fingerprint field, choose firefox. The masking domain is set on the same screen, in the Server name (SNI) field.
  4. Click Save.

In a vless:// link — the fp=firefox parameter:

text
vless://<UUID>@<IP-or-domain>:443?security=reality&sni=www.nvidia.com&fp=firefox&pbk=<PublicKey>&sid=<ShortId>&flow=xtls-rprx-vision&type=tcp#xray

More on changing the fingerprint — XRay: changing the fingerprint.

If it still does not work ​

Change one setting at a time, otherwise you will not know what helped:

What to changeOptionsWhen to try it
SNIanother large foreign website, then Self-SNIthe current domain does not pass DPI
Fingerprintfirefox → safari → edgethe connection drops during the handshake
Port8443only if 443 is taken by something else on the server
Networkanother carrier, wired internetto find out whose network is filtering
How to tell that 443 is taken

Connect to the server over SSH and run:

bash
ss -tlnp | grep :443

If the output shows a process other than Xray, the port is taken. Free it or use 8443.

AmneziaWG and XRay: what's the difference ​

AmneziaWG and XRay do not compete — they complement each other. Both protocols mask traffic reliably; the difference is the transport: AWG runs over UDP, XRay over TCP. That is why each one performs best in its own conditions.

AmneziaWGXRay (VLESS + Reality)
TransportUDPTCP + TLS
Speed and latencythe best — ideal for calls, games and videohigh, with slight TCP overhead
Load on device and batteryminimalslightly higher
Maskingits own obfuscation: packets look like neither WireGuard nor any other known VPNthe connection looks like an HTTPS session with the site from the SNI
Where it helps mostmost networks, everyday usenetworks where UDP is restricted or does not work

Why UDP sometimes does not get through

Some ISPs may not pass UDP traffic or may restrict it: speed is throttled, connections drop after a few minutes, or UDP is blocked entirely. This is most common on mobile carriers, corporate networks and public Wi-Fi. It is a property of that particular network, not of the protocol — on such networks XRay, which runs over TCP, helps out.

Keep both protocols on the server

AWG is the main protocol for everyday use: it is faster and lighter. XRay is the fallback for networks where UDP is cut. Switching between them in the app takes a couple of seconds.

Running two protocols at once requires the Basic plan or higher. On Start, keep one — whichever works on your network. Changing the plan takes a couple of minutes and keeps your data and IP — 📦 Changing the plan.

Comparison of all protocols — Protocols.