To speed up the internet using cmd, we have come up with some Windows tweaks. Some of these tweaks and tricks include playing with DNS cache, pinging to the default gateway, and using ‘netsh int tcp’ command along with different attributes to increase the internet speed.
We often encounter problems with the slow internet connection and we really do not know what to do next. In most of the cases, at most we do is restart our device or the router and then wait for the increased internet speed.
If that does not work, we complain to our service provider and even if the slow internet speed problem persists, we, eventually, change our internet provider for a better speedy connection. So, here are some of the tips and tricks on speeding up the internet using cmd.
How to speed up internet using cmd?
1. Check internet speed using cmd pings to default gateway
You can check your internet connection speed by sending ping packets to your default gateway.
To know your default gateway, you can use ipconfig /all command. Once you get the IP address of your default gateway, start running a continuous ping by typing ping -t <your default gateway address>. The time field value will show you the time taken to get an acknowledgment from the gateway.
Lower time value is an indication that your network is faster. However, running a lot of pings consume network bandwidth as well as your default gateway resources. Though the data packets for ping are very negligible in size and you might not observe any change in internet speed but it does consume bandwidth.
2. IP release and renew
Well, If you are using a WiFi connection, in the case of IP release and renew, you may experience a temporary speed boost, depending on the strength of the WiFi signal. However, in the case of LAN, it won’t affect speed.
3. Flushdns to Speed up internet using cmd
Our computer maintains a list of the websites and their corresponding IP addresses that we access the most in the DNS resolver cache. Sometimes, these data become obsolete after months or weeks. So when we flush our DNS resolver cache, we actually flush out the obsolete data and make new entries in the DNS resolver cache table.
Using this command, you might initially experience a slower connection because of the requirement of the new DNS lookups for every resource. However, you will soon experience faster loading of the websites in your browser.
4. Speed up internet using cmd ‘Netsh int tcp’ command:
Type this command in your command prompt window and observe carefully:
If you do not see Receive Window Autotuning level as ‘Normal’ as shown above then run the following command:
- netsh int tcp set global autotuninglevel=normal
This command will set your TCP receive window to Normal from the disabled or restricted state. TCP receive window is one of the key factors in the internet download speed. Thus making the TCP receive window to ‘Normal’ will surely help you in increasing your internet speed.
After this command, let’s check for another parameter of Windows in terms of the slow internet connection called ‘Windows scaling heuristics’. To check for this parameter, type
- netsh interface tcp show heuristics
Well, in my case, it’s disabled. However, in some case, you might it enabled. That means Microsoft in some ways, is trying to limit your internet connection. So avoid it and to get faster internet, type the below command and press enter:
- netsh interface tcp set heuristics disabled
Once pressed enter, you will receive an ‘ok’ message and now your internet speed has surely got boosted up.
Once you are done with the above steps, you can follow step one again to measure the time value in getting a ping acknowledgment from the default gateway, just to check if your internet speed has gone up or not.
If you are also aware of the other Windows tweaks which can help us to speed up internet using cmd commands or some other way, let us know in the comments below.
FAQs on internet speedup using command prompt
Netsh is a cmd tool in Windows computers that can be used to tweak the network confiuration. A popular command to rest the TCP/IP configuration is: netsh int ip reset
You can use Python-based speedtest-cli on Windows to test your internet speed. After installing python, run this command to install: pip install speedtest-cli
Internet speed that you get is the result of multiple factors like equipment like router, quality of cables, signal strength, device modem, and finally your ISP. With all these factors into account, the internet speed is bound to vary.