sodcalculator

10 Tech How-To

Optimize TCP/IP Settings in Windows 10

Guide 10-58742 · Updated · Step by step

This guide walks you through adjusting TCP/IP settings in Windows 10 to improve network performance, reduce latency, and resolve connectivity issues. You’ll learn how to tweak parameters like TCP auto-tuning, receive window auto-tuning, and DNS settings using built-in tools—no third-party software required. Before starting, ensure you have administrator access and a stable internet connection to avoid interruptions.

What You’ll Need

  • Administrator account on Windows 10
  • Command Prompt (admin) or PowerShell (admin)
  • Knowledge of your network adapter’s name (can be found in Network Connections)
  • Your router’s IP address (for DNS changes, usually 192.168.1.1 or similar)
  • A backup of your current settings (optional but recommended)

Step-by-Step

  1. Open Command Prompt as Administrator. Press Windows + X and select “Command Prompt (Admin)” or “Windows PowerShell (Admin)”. If prompted by UAC, click “Yes”.
  2. Check current TCP/IP settings. Run netsh interface tcp show global to see the current TCP global parameters like auto-tuning level and congestion provider. This gives you a baseline to revert to if needed.
  3. Enable TCP auto-tuning (or adjust it). Auto-tuning helps the receive window size adapt to network conditions. To set it to normal, run netsh int tcp set global autotuninglevel=normal. If you have a high-bandwidth connection and want to maximize throughput, you can try experimental (e.g., netsh int tcp set global autotuninglevel=experimental). For troubleshooting, you may set it to disabled to test, but keep it normal for daily use.
  4. Set TCP congestion control to CTCP (Compound TCP). This can improve throughput on high-latency links. Run netsh int tcp set global congestionprovider=ctcp. To revert to the default (New Reno), use netsh int tcp set global congestionprovider=none.
  5. Increase the TCP receive window size (if needed). The receive window determines how much data can be in transit before acknowledgment. To set a larger window, you can modify the registry: Press Win + R, type regedit, and navigate to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters. Look for TcpWindowSize (DWORD). If it doesn’t exist, create it. Set a value like 65535 (hexadecimal) for a 64KB window, or higher (e.g., 262144 for 256KB). Restart your PC after this change.
  6. Optimize DNS settings. Use a faster DNS server to reduce lookup times. Go to Settings → Network & Internet → Change adapter options. Right-click your active adapter → Properties → Select “Internet Protocol Version 4 (TCP/IPv4)” → Properties. Choose “Use the following DNS server addresses” and enter a public DNS like 8.8.8.8 and 8.8.4.4 (Google) or 1.1.1.1 and 1.0.0.1 (Cloudflare). Click OK.
  7. Disable Nagle’s Algorithm (optional). This reduces latency for small packets. In the registry, under the same Tcpip\Parameters key, create a DWORD named TcpAckFrequency and set it to 1. Also create TCPNoDelay and set it to 1. This forces immediate acknowledgment and disables delayed ACK. Restart your PC.
  8. Flush DNS cache. After changing DNS, run ipconfig /flushdns in the command prompt to clear old entries.
  9. Reset TCP/IP stack (if you encounter issues). If you’ve made changes and connectivity breaks, run netsh int ip reset and netsh winsock reset. Reboot afterwards.

Common Mistakes

  • Setting auto-tuning to disabled permanently. This can cause throughput issues on high-latency connections. Use it only for testing.
  • Using an excessively large receive window. A window too large can cause memory pressure and actually reduce performance. Stick to values like 64KB or 256KB.
  • Applying registry changes without backing up. Always export the registry key before editing to revert if needed.
  • Changing settings on the wrong adapter. Ensure you’re modifying the active network adapter (Ethernet or Wi-Fi) you actually use.
  • Forgetting to restart. Many TCP/IP changes only take effect after a reboot.

Tips

  • Test your internet speed before and after changes using a reliable speed test service to see the actual impact.
  • Use the ping command (e.g., ping -t google.com) to monitor latency in real-time while tweaking.
  • For gaming, disabling Nagle’s algorithm can reduce lag spikes, but it may increase CPU usage slightly.
  • If you’re on a corporate network, some settings may be managed by Group Policy; changes may not stick.
  • Keep a text file with your original settings so you can revert quickly.

Troubleshooting

  • No internet after changes: Run netsh int ip reset and netsh winsock reset, then reboot. This restores default TCP/IP stack.
  • Settings revert after reboot: Some Group Policy or third-party software may override. Check if you have any “network optimizer” software installed and disable it.
  • Speed is slower: Revert to auto-tuning normal and congestion provider none. If you changed the receive window, set it back to default by deleting the registry value.
  • Cannot open Command Prompt as admin: Use PowerShell as admin instead, or search for “cmd” in Start, right-click and select “Run as administrator”.
  • DNS changes not working: Ensure you entered the correct IP addresses and that the adapter is using DHCP or static IP correctly. Flush DNS and restart the adapter.

Frequently Asked Questions

Will these changes make my internet faster?

They can reduce latency and improve throughput, especially on high-bandwidth or high-latency connections, but they won’t increase your ISP’s bandwidth limit.

Are these settings safe?

Yes, when done correctly. They are built-in Windows features. However, incorrect registry edits can cause instability, so always back up.

Do I need to restart after every change?

Most command-line changes take effect immediately, but registry changes require a restart. It’s best to restart after all modifications.

Can I revert to default settings?

Yes. Use netsh int tcp set global autotuninglevel=normal and netsh int tcp set global congestionprovider=none. For registry changes, delete the added values or restore the backup.

Will these settings work on Wi-Fi?

Yes, but Wi-Fi has its own variables like signal strength and interference. Wired connections benefit more consistently.

Is it better to use a third-party TCP optimizer?

Not necessarily. Windows 10’s built-in settings cover most needs. Third-party tools may apply aggressive tweaks that cause issues.

Related

General steps for current mainstream versions; menus can differ by device and version. See the disclaimer or report an error.

More in this bed

The whole Tech How-To bed →