Server ping in a VPN app: what the number means and which is good

The number next to a server is the time in milliseconds for a request to get there and back. Lower is better: under 100 ms is very good, up to 200 ms is fine for sites and video, and above 300 ms you feel it. But first check what the app measures. Many apps only check that the server's address answers, and that says nothing about whether the protocol gets through: a server with 80 ms may not open a single site, while -1 doesn't always mean the server is dead.

Updated

On this page

What the number measures

Clients test servers in one of three ways, and the same server can get three different numbers. The first two only knock on the door. The third one actually goes in.

  • Ping of the address (ICMP, like the ping command)

    What it checksThat the server's address answers at all

    What it can't tell youWhether the protocol works. Many servers don't answer ping and work fine

  • Connection to the port (often called TCPing)

    What it checksThat the server's port accepts a connection

    What it can't tell youWhether the key is right and the network lets the protocol through. UDP protocols have no TCP port to knock on

  • Request through the protocol (often called real delay or URL test)

    What it checksThat traffic really goes through: the client connects with your key and fetches a tiny test page through the server

    What it can't tell youSpeed: the request is tiny

Which numbers are good

Lower is better: the number is how long you wait for every answer. Distance sets the floor. Light in a cable adds about 1 ms of round trip for every 100 km, and real routes are longer than a straight line, so a server on another continent will never show 20 ms.

A request through the protocol is usually two to four times the address's ping: it includes the connection, the encryption handshake and the request to the test page. 250 ms in such a test may be the same server that shows 80 ms in a plain ping.

  • under 50 ms

    What it meansThe server is close, the network is clean

    Good forEverything, games and calls included

  • 50–100 ms

    What it meansVery good

    Good forEverything; in fast games you may notice it

  • 100–200 ms

    What it meansFine

    Good forSites, video, calls; games get harder

  • 200–300 ms

    What it meansNoticeable

    Good forSites and video still work, pages open a little later

  • over 300 ms

    What it meansSlow or overloaded path

    Good forPick a closer or less busy server

  • -1, timeout, failed

    What it meansNo answer to this test

    Good forSee the next section

-1, timeout or failed: why

No number is a result too. What it means depends on which test failed and what the other tests show.

  • The address answers, the request through the protocol fails

    Likely causeYour network blocks this protocol, or the key, UUID or password is wrong

    What to doCheck the key, then try another protocol or server

  • Every server shows -1

    Likely causeYour own network is down, or another VPN or firewall is in the way

    What to doCheck the internet without the VPN, turn off the second VPN

  • One server shows -1, the rest work

    Likely causeThat server is off, overloaded or blocked

    What to doTake another one, or ask whoever runs it

  • Port test fails on Hysteria2, TUIC, WireGuard or AmneziaWG

    Likely causeThese protocols use UDP, and a TCP port test can't reach them

    What to doTrust only a request through the protocol

  • Works by port, fails by request, and VMess is involved

    Likely causeThe clock is off: VMess refuses a clock more than 90 seconds out

    What to doTurn on automatic time

  • The number jumps from 90 to 900 and back

    Likely causeThe server or your network is overloaded, or Wi-Fi is weak

    What to doTest again over a cable or at another time

Good ping, but sites don't open or crawl

  • Ping is not speed. A server can answer fast and still give you 2 Mbps if it is overloaded or the channel is narrow. Speed is measured with a speed test.
  • The test only knocked on the door. A ping or a port test passes even when the protocol is blocked. Only a request through the protocol shows that traffic goes through.
  • Small requests pass, big ones stall. Some networks let short exchanges through and freeze a connection once more data goes through it. The test request is tiny and passes; a page or a video doesn't.
  • The test page is reachable, your site isn't. The site may block VPN server addresses, or the server itself may not reach it.
  • Ping in a game is another number. It is the way from you to the VPN server plus the way from the VPN server to the game's server. A close VPN server far from the game's server gives a high ping in the match.

Measure it yourself

Put your server's address in place of vpn.example.com. The last command checks the protocol itself and needs the client running as a local proxy.

Windows: PowerShell or cmd
ping -n 5 vpn.example.com

time= is the round trip. Request timed out only means the server doesn't answer ping: many don't, and work.

macOS or Linux: Terminal
ping -c 5 vpn.example.com

time= is the round trip; the last line has the minimum, average and maximum.

Any system: Terminal (curl.exe in PowerShell)
curl -s -o /dev/null -m 10 -w "connect %{time_connect}s\n" https://vpn.example.com:443

The time to open a connection to the port, the same as a port test. On Windows write NUL instead of /dev/null. For UDP protocols this tells you nothing.

Through the client's local proxy
curl -x socks5h://127.0.0.1:PORT -s -o /dev/null -m 10 -w "%{http_code} %{time_total}s\n" https://www.gstatic.com/generate_204

204 and a time mean traffic goes through the protocol: this is what a real test does. PORT is the SOCKS port in your client's settings.

In Veli

Veli tests the protocol, not just the address

On a computer, Profiles tests every server through its own protocol when you open the page (no more than once in 10 minutes) and when you press ⟳. VLESS, VMess, Trojan, Shadowsocks, Hysteria2 and TUIC send a real request through the server; WireGuard, AmneziaWG and Veli do one handshake. A working server shows just the time, such as “131 ms”: a request through the protocol, not the address's ping. A problem is one word, with the reason on hover: “blocked” (the address answers, but traffic doesn't go through), “no answer”, “port closed”, “profile error”. OpenVPN, and servers not tested yet, show the address's ping. The server the tunnel is on shows “connected” and isn't tested again, because a second handshake would knock the tunnel down.

“Fastest”, both the subscription's row and the choice at start, goes by the request through the protocol and never takes a server that failed it. With “Fallback servers” on in Settings → Connection, after 3 failed attempts the app moves to the fastest of the other profiles. On Android the server list shows the address's ping for now.

FAQ

Is a high or a low ping better?

Low. The number is how long each answer takes to come back, so the smaller it is, the faster sites react.

What is a good ping for a VPN server?

Under 100 ms is very good, up to 200 ms is fine for sites and video. For games, the lower the better, and what counts is the ping to the game's server through the VPN.

Why does my config show -1?

The test got no answer. If only the address's ping or the port test failed, the server may still work; if the request through the protocol fails while the address answers, the network blocks the protocol or the key is wrong.

Why doesn't a config with a good ping work?

Most likely the ping only showed that the address answers. The protocol itself can be blocked, or the key wrong. Test with a request through the protocol.

Why is real delay higher than ping?

It includes the connection, the encryption handshake and a request to a test page through the server. Two to four times the address's ping is normal.

A test through the protocol, not just a ping

Veli is a free client for Windows, macOS, Linux and Android. On a computer, Profiles tests every server through its protocol and says in one word why one doesn't work.