Language: English

How to find which game server you're connected to

Last updated · 7 min read

When one game lags and the rest of the internet is fine, what's left is the route to that game's server, or the server itself. To test either, you need to know which server your match is on, and Windows can show you with tools it already has. Here is how to find it, where it roughly is, and what to measure when it won't answer a ping.

Why the game's server matters more than 1.1.1.1

The quick tests in what causes ping spikes check your router and then 1.1.1.1. They show whether your home network and your line are healthy. Cloudflare answers 1.1.1.1 from data centres in many countries, so the reply comes from one near you. Your match runs in one particular data centre, perhaps in another country, reached by another path.

So a clean 1.1.1.1 test clears your line, not the route to your game. To test that route, at the hour the lag happens, you need the address your game is really talking to. It's also how you find out where the match is: if the game lets you tick more than one region, it can be in any of them.

Find the server in Resource Monitor

Resource Monitor is part of Windows. It shows which addresses each program is exchanging traffic with, including the kind of traffic most games use.

  1. Get into a match. The server you're after is your match's, and there is none to find before the match starts.
  2. Open Resource Monitor. Press Win, type resmon, press Enter, and open the Network tab.
  3. Pick the game. Under Processes with Network Activity, tick the box next to the game's own program, not its launcher. The lists below then show that program alone.
  4. Read Network Activity. Each row is an address the game is exchanging traffic with, and the bytes a second sent and received, averaged over the last minute. Your match's server is the one with steady traffic both ways for as long as you play. Give the averages a minute to catch up after the match starts.

If more than one address is busy, compare with what the list showed while you were still in the menus: the match's server is the address that turns up when the match starts. Where the list shows a name instead of an address, ping that name: the first line Windows prints has an address in square brackets, whether anything answers or not. A name can stand for several addresses, though, so if nslookup followed by the name lists more than one, the game may be on another of them.

Most shooters send their play over UDP, which makes no connection for the TCP Connections list underneath, so their server is in Network Activity alone. For a game that plays over TCP, such as Minecraft Java Edition, the server is in that list too, with its port, beside Windows' own measure of that connection's round trip (Latency) and its lost packets. Rows on remote port 443 are almost always web connections, not the match.

Find a TCP game's server with netstat

For a game that plays over TCP, Command Prompt can list the same connections as text, ready to paste into a report to your provider. netstat -n -o shows your PC's active TCP connections with numeric addresses and, in the last column, each one's PID: the number Windows gives a running program. Task Manager's Details tab shows which PID is the game, and on the game's lines Foreign Address is the server and its port. In a Command Prompt run as administrator, netstat -b -n names each line's program instead.

For a game that plays over UDP, netstat can't help. Windows' table of UDP sockets holds only your end: netstat -n -o leaves the game's UDP port out, and netstat -a -n -o lists it with *:* where the other side would be. Use Resource Monitor for those.

Where is that server?

Start with your ping to it, or with the game's own ping display if the server won't answer a ping (the next section says why). Light in fibre covers about 200 km a millisecond, so each millisecond of a round trip allows at most about 100 km between you and the server. A server that answers in 10 ms is within about 1,000 km of you, whatever a lookup says. Ping, jitter and packet loss explains the same limit from the other side.

Then look at its name: ping -a followed by the address asks for it. Some providers put the place there. An Amazon server's name ends in something like eu-central-1.compute.amazonaws.com, and eu-central-1 is Amazon's code for Frankfurt.

IP location websites give an estimate, and for a server it can be wrong. RIPE NCC, the address registry for Europe, the Middle East and parts of Central Asia, says it has never been specified what the country in its address records stands for: it may be a company's head office, its server centre or a user's home. Location databases are estimates too, and give their precision as anything from a few kilometres to hundreds. When a lookup and your ping disagree, believe the ping.

When it won't answer a ping

Run ping -n 20 followed by the server's address. If every line says "Request timed out" while the game plays smoothly, the timeouts say nothing about your connection. A ping is its own kind of message, called ICMP, and a server answers it only if whoever runs it lets those messages through. A game server needs nothing but its game's traffic. Amazon's documentation for its cloud servers says as much: the only traffic that reaches a server is what its firewall rules allow, and you can ping it only if a rule allows ICMP.

Some games keep the server's address out of view altogether. Counter-Strike 2's matchmaking reaches Valve's servers through Valve's own relays, and Valve says relaying protects servers because their addresses are never revealed. The address you find for a CS2 match is a relay's: CS2 server locations in Europe lists where those relays and the datacenters behind them are.

Then measure what you can:

  • The game's own ping display. It's measured over the game's own connection, so it works where Windows' ping can't. Lag and ping, game by game says where to find it in the games we've written about.
  • The routers on the way. tracert -d followed by the address lists them, and they often answer when the server doesn't. The last one that answers is as close as a ping gets, so treat its time as a rough guide, not the game's ping. Once only timeouts come back, stop it with Ctrl + C: it goes on to 30 hops by default.

Where NoSpike fits

For the games in its list that play over UDP, NoSpike does this for you while you play. It watches which addresses the game's own program exchanges UDP packets with, and how many, never what's in them, and takes the busiest steady one as your match's server. On a server it routes, every route is then measured against that one, whatever region you picked. For a server you add yourself, such as a Minecraft server, it measures the address you entered.

On a server NoSpike doesn't route, it never shows another server's figures as your game's: the game's page says "Match not routed" with your own ping to that server, and while it optimizes the game, the overlay and the tray say so too. On a server that answers no pings, the page says its ping can't be measured from outside the game, and while it optimizes the game, it names the server any figures it shows are for.

With Pro, it routes only the servers it knows, through its own relays in Amsterdam, Copenhagen, Frankfurt, London, Madrid and Sweden. Left on automatic, it does that only when the route measures better than your own; if you pick a region or relay for a game yourself, it goes there and tells you when another way measured faster. For a match on any other server it measures your own connection, tells you, and changes nothing.

Frequently asked questions

Why won't the game server answer my ping?

A server answers a ping only if whoever runs it lets pings through, and a game server only needs the game's own traffic. A timed-out ping to it says nothing about your connection; the game's own ping display does.

Is the server where the IP lookup says it is?

Not necessarily. A registry's country can be a company's head office, and location databases give their precision as anything up to hundreds of kilometres. Your ping is the firmer limit: each millisecond of round trip allows at most about 100 km.

Is it safe to look at a game's connections?

Yes. Resource Monitor and netstat are part of Windows and only read what Windows already records about your PC's own connections. They change nothing in the game or its files.