-1920x1080-cda01002-e07b-43a9-8ac0-aa8c88f17f37.png)
When playing CS2/CSGO and you notice that you feel lag within the servers and are giving you a high ping, it can be useful to limit your maximum ping. The mm_dedicated_search_maxping command will allow you to search only for matchmaking servers with latencies lower or at the value you set.
1) Enable and Open Developer Console
To set your max ping, you will need to enable the developer console, simply press ESC, then head over to the game tab and set your Developer Console to Yes.
2) Max Ping for Matchmaking Command
To change your max ping, open up your developer console and enter this line below:
mm_dedicated_search_maxping PING_40
You can replace 40 with your required ping number.
Once you have entered this command into the console, it will only search for servers with a ping level lower than 40.
The ping level of 40 can always be changed, it’s worth noting that the lower the ping level the longer it will take to find a server. This is because it makes the search pool a lot smaller. If you find that it is taking longer to find a game, you can always change the value to a higher number, like something below:
mm_dedicated_search_maxping PING_100
Recommended Articles

The Best Kukri Knives in CS2
The Kukri Knife offers a perfect balance of aesthetic appeal and functionality. Here is everything you need to know about it!

How To 1v1 In CS2: Step By Step Guide
In this guide, we will show you how you can set your own 1v1 matches. We will cover everything you need to know from using workshop maps and even console commands that you can use

Best CS2 Skins With Fire (2025)
In this article, we’re going to showcase some of the best CS2 skins with fire that you can buy in 2025.