Supercharging Your Internet Connection on Windows by Tweaking Your TCP and Network Settings

asheroto
3 min readNov 16, 2023
Supercharge your Internet connection.

Are you itching to make your high-speed Internet even speedier? You’re in the right place. Let’s dive into some nifty tweaks that can juice up your connection. It’s like turbocharging your car, but for the Internet!

TL;DR

Run the script and your connection speeds up. Helps with web browsing, streaming, gaming, file sharing, and more. It doesn’t make it perfect, but it definitely helps. After running the script, you should notice a change in performance. Afterwards, restart your computer for all changes to take effect.

Make a Backup Before Using

Always have a backup. Always. 😊

At the very least, I recommend creating a System Restore point so you can go back in time to before you applied the fixes. Alternatively create a registry backup. A full image-based backup is the ideal type of backup.

The Script

The heart of these tweaks is a PowerShell script, a handy tool for adjusting various Windows settings. This script tweaks the TCP/IP settings, plays around with network adapter configurations, and does some behind-the-scenes magic. The goal? Less lag, more speed, and a smooth Internet ride.

Here’s the script!

https://gist.github.com/asheroto/942db6b331db8f070472990da6e6e1db

Features

  1. Sets the congestion provider to CTCP for Internet.
  2. Enables Direct Cache Access (DCA), RSS, and disables RSC settings globally.
  3. Disables TCP timestamps globally.
  4. Sets the initial Retransmission Timeout (RTO) to 2000 milliseconds globally.
  5. Disables Non-SACK RTT Resiliency globally.
  6. Sets the maximum SYN retransmissions to 2 globally.
  7. Sets the dynamic port range for TCP on IPv4.
  8. Sets the dynamic port range for TCP on IPv6.
  9. Disables TCP Chimney Offload globally.
  10. Enables Checksum Offload on all network adapters.
  11. Enables Receive-Side Scaling (RSS) on all network adapters.
  12. Disables Receive Segment Coalescing (RSC) on all network adapters.
  13. Disables Packet Coalescing Filter globally.
  14. Disables Large Send Offload (LSO) on all network adapters.
  15. Sets the minimum RTO (Retransmission Timeout) to 300 milliseconds for the InternetCustom profile.
  16. Sets the Initial Congestion Window size to 10 segments for the InternetCustom profile.
  17. Sets TCP AutoTuningLevel to Normal and disables ScalingHeuristics for the InternetCustom profile.
  18. Sets the default TTL value in TCP/IP parameters to 64.
  19. Sets the maximum user port number in TCP/IP parameters to 65534.
  20. Sets the TCP timed wait delay in TCP/IP parameters to 30 seconds.
  21. Disables non-best effort bandwidth limit in QoS policies.
  22. Configures QoS to not use Network Layer Authentication.
  23. Sets system memory management to use a smaller system cache.
  24. Adjusts LanmanServer parameters for optimized file sharing performance.
  25. Sets the network throttling index in the multimedia system profile to maximum.
  26. Sets system responsiveness to maximum in the multimedia system profile.
  27. Applies NSI registry settings for network performance optimization.
  28. Sets priority levels for DNS, Hosts, Local, and NetBT services.
  29. Sets IRPStackSize for LanmanServer to enhance file sharing capabilities.

These actions aim to optimize network performance and reduce lag for a smoother Internet experience. Please note that some settings may vary depending on your network configuration.

Where’s This Magic Coming From?

These aren’t your average “turn it off and on again” tips. I’ve implemented wisdom from SpeedGuide.net and MajorGeeks.com. While I’ve grabbed the cream of the crop, not everything made the cut.

Tweaks from SpeedGuide

SpeedGuide.net is one of the leading Broadband related sites on the Net, as well as a popular source of information on improving PC performance.

Tweaks from MajorGeeks

MajorGeeks is a small, home-based technology website that was founded in 2001 and focused on only the best, safe, personally tested software available on the internet.

Contributing

If you find a Windows command-line tweak that helps speed up your Internet connection, leave a comment and I’ll test it out and update the article. 😊

Disclaimer

I use these commands on my personal computers and don’t have an issue at all. While these changes are mostly harmless, all responsibility is on you! If you don’t understand what the commands do, you may not want to run them!

--

--

asheroto

🌎 Full Stack Developer 🔗 Systems Administrator 😎Innovation through Automation ✔ Privacy Advocate ♥ Startup Facilitator