Anycast and the server list explained

Anycast is a technology that handles routing in a way where incoming requests can be routed through the nearest location to a client’s incoming connection.

Our network protection provider leverages the mass amount of locations and PoPs (Point of Presence) to cache the Source Engines A2S response at the edge locations, responding to the serverlists requests at the a location closer to the player.


We make further improvements on this starting at your server, pre generating all A2S requests as they come in so they can be cached quicker by the edge.

The Garry’s Mod serverlist is sorted by a ranking number (Lower being higher on the list), calculated with the following function from this function in the game’s code.

function CalculateRank( server )
{
	var recommended = server.ping;

	if ( server.players == 0 ) recommended += 75; // Server is empty
	if ( server.players >= server.maxplayers ) recommended += 100; // Server is full, can't join it
	if ( server.pass ) recommended += 300; // Password protected, can't join it
	if ( server.isAnon ) recommended += 1000; // Anonymous server

	// The first few bunches of players reduce the impact of the server's ping on the ranking a little
	if ( server.players >= 4 ) recommended -= 10;
	if ( server.players >= 8 ) recommended -= 15;
	if ( server.players >= 16 ) recommended -= 15;
	if ( server.players >= 32 ) recommended -= 10;
	if ( server.players >= 64 ) recommended -= 10;

	return recommended;
}

Based on this formula, if your ping is low you have an advantage over servers with lots of players without anycast, even if your server doesn’t have the most players.

Having you and some friends on your Garry’s Mod server with Anycast will help you boost your servers ranking and grow your community. A fantastic example of customer success can be seen below with one of our customers (highlighted in image) reaching the top of the serverlist with Anycast.