How to lower ping in CS2: the fixes Valve and Microsoft document

How to Lower Ping in CS2: Network Settings, Console Commands, and Proven Fixes

Updated 26 October 2026: the page now keeps only the fixes that Valve’s and Microsoft’s own pages document, with the game port range corrected to UDP 27000-27250. The console commands (rate, cl_updaterate, cl_cmdrate, cl_interp), the millisecond gains, QoS and DNS settings, the player count and the antivirus advice were removed because no primary source supports them.

To lower ping in CS2, start with the parts of the connection that you control, in the order Valve’s Steam Support lists them: test with a wired connection, close programs that interfere with Steam and Valve games, allow the game ports through the firewall (UDP 27000-27250), and check whether the problem appears only at certain hours, which points to your internet provider. Then run Microsoft’s pathping to see where packets are lost. The distance to the Valve data centre sets the lowest ping that is possible.

Fixes that Valve documents

Steam Support’s Troubleshooting Network Connectivity page gives these steps, read on 26 October 2026.

StepWhat the page says
Test the router and the linkWireless and powerline connections can cause intermittent failures due to interference. Test with a direct wired connection, and use an internet speed test to spot problems with the local link.
Check firewallsA firewall can block the connection to the Steam network, also after Steam has been updated.
Disable background applicationsReconfigure, disable or uninstall programs that prevent Steam and Valve games from connecting.
Scan for malwareSpyware, malware, adware or a virus can interfere with Steam.
Test at other hoursIf problems appear only at certain hours, for example 5 pm to 11 pm, the internet provider may be shaping the connection. Contact the provider.

Ports that CS2 traffic uses

Valve’s Required Ports for Steam page lists the ports to open on a router or firewall.

UsePorts
Game traffic from the Steam clientUDP remote 27000-27250
Steam clientUDP remote 4380
Login and downloadsTCP and UDP remote 27015-27050, plus HTTP 80 and HTTPS 443
Voice chat and peer-to-peerUDP remote 3478, 4379, 4380 and 27014-27030

Valve notes that the ports cannot be remapped. A rule that prioritises or opens only 27000-27050 covers a fifth of the game traffic range.

Find the bad hop with pathping

Microsoft’s pathping command lists the routers between your PC and a destination, sends 100 queries to each by default and reports the loss for every router and every link. Run pathping /n followed by the address in Command Prompt. In Microsoft’s example a link that drops 13% of packets points to congestion on that link, and routers that drop packets addressed to them can still forward other traffic without trouble. The first hop is your own router: loss there points at your home network.

Fixes that no Valve page documents

Common adviceStatus on 26 October 2026
rate, cl_updaterate, cl_cmdrate, cl_interpValve documents none of them for CS2; players on the Steam CS2 forum reported on 15 September 2023 that the commands were removed
Matchmaking ping limit and bandwidth options in the Game settingsValve’s support pages give no recommended value
Router QoS rulesValve publishes the ports above and no QoS values
ipconfig /flushdnsMicrosoft documents it as a reset of the DNS client resolver cache for DNS troubleshooting

Frequently asked questions

Why is my ping so high in CS2?

The base ping depends on the distance to the Valve data centre. The rest comes from the local link, your internet provider and background traffic. Steam Support suggests a wired test, a firewall check and tests at other hours to find which one it is.

How do I fix ping spikes in CS2?

Test with a direct wired connection, close programs that interfere with Steam, and run pathping to see whether packets are lost at your router or further along the path. If spikes appear only in the evening, contact your internet provider.

Which ports does CS2 need open?

Valve lists UDP 27000-27250 for game traffic and UDP 4380 for the Steam client. Login and downloads use TCP and UDP 27015-27050, and voice chat and peer-to-peer use UDP 3478, 4379, 4380 and 27014-27030.

Do cl_updaterate and cl_cmdrate work in CS2?

Valve does not document them for CS2. Players on the Steam CS2 forum reported on 15 September 2023 that the commands were removed, and Valve has not commented.

Does Wi-Fi cause ping spikes in CS2?

Steam Support says wireless and powerline connections can cause intermittent failures due to interference, and recommends testing with a direct wired connection. The amount of improvement depends on your home.

Sources

Prepared by the GamerMarkt editorial team, with some help from AI tools; some images may be AI-generated.