How to tell your VPN server's IP is blocked, and what to do

If a server stops answering from your network but answers from mobile data, another network or an online port checker, and ping, every port and SSH fail together, its IP address is blocked on your network. Another protocol or port won't help then: you need a new address, from the hosting or on a new server. If the address answers and only the VPN connection breaks, the protocol is being recognized instead, and a better-disguised one such as VLESS Reality is the fix.

Updated

On this page

Three blocks that look alike

From the inside, every block looks like “the VPN won't connect”, but the fixes differ. First find out what is blocked:

  • The IP address — nothing gets to the server from your network: no ping, no port, no SSH. From other networks it answers normally.
  • A port — the address answers ping or other ports, but the VPN's port doesn't open.
  • The protocol — the port opens, but the handshake breaks off, the connection is reset after a few seconds, or it works for a minute and freezes. That's a network recognizing the protocol, not an address block.

Signs that it's the address

  • It works from another network — mobile data, a friend's connection or an online port checker reach the server; yours doesn't.
  • Ping and the port fail together — while from another network both answer.
  • Every protocol on the server died at once — VLESS, WireGuard, Shadowsocks, whatever runs there.
  • SSH fails too — while the hosting's web console shows the server running.

Check from your network

Take the address and port from your link or config, turn the VPN off and run these. 203.0.113.5 stands for your server's address.

Windows: PowerShell
Test-NetConnection 203.0.113.5 -Port 443
Test-NetConnection 203.0.113.5 -Port 22

TcpTestSucceeded : True — the port opens. False for both the VPN's port and SSH (22), with PingSucceeded : False, while they open from another network — the address is blocked on yours.

macOS and Linux: Terminal
nc -vz -w 5 203.0.113.5 443
nc -vz -w 5 203.0.113.5 22

succeeded — the port opens. Connection refused — the address answers and nothing listens on that port, so it isn't an address block. No answer within 5 seconds — the packets don't get there.

Windows: PowerShell or cmd
ping -n 4 203.0.113.5
tracert -d 203.0.113.5

Compare with another network: if there the trace reaches the server and from yours it dies a few hops in, the block is on the way.

macOS and Linux: Terminal
ping -c 4 203.0.113.5
traceroute -n 203.0.113.5

Many servers don't answer traceroute, so * * * at the very end alone means nothing. On Linux without traceroute, tracepath -n does the same.

Windows, macOS and Linux
ssh -o ConnectTimeout=10 root@203.0.113.5

Connection timed out — nothing gets there. Connection refused — the address is reachable, SSH is off or on another port. A password or key prompt — the address isn't blocked.

Check from outside

  1. 1

    Another network

    Turn Wi-Fi off on your phone and connect to the same server over mobile data, or run the same Test-NetConnection or nc line from a friend's or your work's network.

  2. 2

    An online port checker

    These sites test a port from their own servers. If they see it open and you don't, your network is the difference. Most check only TCP: for a UDP port (WireGuard, Hysteria2), compare ping and the SSH port instead.

  3. 3

    On the server itself

    In the hosting's web console run sudo tcpdump -ni any host YOUR_IP, with your address (an IP check site shows it with the VPN off) in place of YOUR_IP, and try to connect. If nothing from you arrives, the packets are dropped on the way.

What you see, why, and what to do

  • Nothing answers from your network; everything answers from mobile data

    CauseThe server's IP address is blocked on your network

    What to doA new IP from the hosting, or a new server

  • Ping answers and SSH works, the VPN's port doesn't

    CauseThat port is blocked, or the VPN service is down

    What to doCheck the service on the server, then move it to another port, such as 443

  • The port opens, but the connection breaks in the handshake or after a few seconds

    CauseThe network recognizes the protocol; the address is fine

    What to doA disguised protocol: VLESS Reality, or AmneziaWG instead of WireGuard

  • Nothing answers from anywhere, the port checker included

    CauseThe server is off, or its firewall closes everything

    What to doCheck the hosting panel and the server's firewall

  • Ping fails from everywhere, but the ports open

    CauseThe server or its hosting ignores ping

    What to doNot a block: trust the port check

  • The trace from your network dies inside your provider's network

    CauseThe block sits on the way, close to you

    What to doA new address

  • A new address works for a while, then gets blocked too

    CauseThe network spots the protocol and then blocks the address

    What to doA disguised protocol on the new address, or a server behind a CDN

  • A freshly rented server doesn't answer from your network from day one

    CauseThe address was blocked before it came to you

    What to doAsk the hosting to swap it, or create the server again

What to do

  1. 1

    Get a new address

    Many hosts sell an extra IP or let you swap the main one. Elsewhere, delete the server and create a new one: it usually gets a different address, in minutes.

  2. 2

    Update every device

    A subscription picks up the new address by itself once the service updates it; a single link or a .conf file has to be edited or issued again.

  3. 3

    Move the port only if the port is blocked

    If ping and SSH work but the VPN's port doesn't, another port helps, and 443 looks like an ordinary website. If the whole address is blocked, no port opens.

  4. 4

    Pick a protocol that disguises better

    A new address lasts longer if nothing on it looks like a VPN. VLESS Reality looks like a visit to a real website; AmneziaWG changes the packets that give plain WireGuard away. Neither hides the address, so on one already blocked they don't help.

  5. 5

    Put a CDN in front, where you can

    VLESS, VMess or Trojan over WebSocket, gRPC or XHTTP with TLS can go through a CDN: the client connects to the CDN's addresses, shared by many ordinary sites, and the CDN passes the traffic on to your server. It needs a domain, and Reality can't work this way.

Why server addresses get blocked

Networks block by lists. An address gets on one when a filter notices a VPN protocol on it, when a config with it spreads widely, or when the range it sits in belongs to a hosting the network distrusts. Some blocks lift after a while; some stay. So a fresh server can be blocked from day one, and a server shared by many people gets noticed sooner than one for you alone. A rented address is easy to replace, and that is the real defense: keep the server easy to set up again.

In Veli

See it in Profiles, move to a new server in minutes

On a computer, Profiles checks each server through its own protocol, not just by ping, and the word in the row tells the cases apart. “No answer” means the server is silent: down, or its address blocked on your network. “Blocked” means the address answers but no traffic goes through: a block of the protocol or a wrong key. When every profile of one server says “no answer” and the others work, the address is the suspect. The arrows next to the search refresh and check them all, and Diagnostics → “Check everything” also shows which profiles work from this network.

If the server is yours, a new one is a few minutes away: rent a VPS, then Profiles → Add → “Your own server”, its address and password. The app logs in over SSH, sets up the protocol you pick and at the end checks by itself that the port opens; “Add a device” gives each phone a fresh QR code and link. On the old server's screen, the “⋯” menu has “Copy the SSH command” to try SSH from your network. On a computer, a link whose address the service changed is edited in the profile's settings (the gear in its row), under Configuration.

FAQ

How do I know if my VPN server's IP is blocked?

Check it from two networks. If ping, the VPN's port and SSH all fail from yours but work from mobile data or an online port checker, the address is blocked on your network.

Will changing the port help if the IP is blocked?

No. A blocked address doesn't answer on any port. Another port helps only when the address answers and just that one port doesn't.

Does VLESS Reality help against an IP block?

Not against one that's already there: Reality disguises the traffic, not the address. On a new address it helps keep the block from coming back.

Why is a brand-new server already blocked?

Its address was used before and got on a block list then. Ask the hosting to swap it, or delete the server and create a new one.

Tell a blocked address from a blocked protocol

On a computer, Veli checks each server through its protocol and says “no answer” or “blocked”, and it sets up a VPN on a new server over SSH in minutes.