When a PC continuously reduces speeds over wi-fi compared to other devices, automation can make things easier to speed up the PC.
First before automating wi-fi refreshes, do the following network reset:
Use network reset in Windows
Open Settings > Network & internet > Advanced network settings > Network reset.
On the Network reset screen, select Reset now > Yes to confirm.
=========================================================================
Then setup Google DNS:
Important: Before you start
Before you change your DNS settings to use Google Public DNS, be sure to write down the current server addresses or settings on a piece of paper. It is very important that you keep these numbers for backup purposes, in case you need to revert to them at any time.
We also recommend that you print this page, in the event that you encounter a problem and need to refer to these instructions.
Google Public DNS IP addresses
The Google Public DNS IP addresses (IPv4) are as follows:
8.8.8.8
First before automating wi-fi refreshes, do the following network reset:
Use network reset in Windows
Open Settings > Network & internet > Advanced network settings > Network reset.
On the Network reset screen, select Reset now > Yes to confirm.
=========================================================================
Then setup Google DNS:
Important: Before you start
Before you change your DNS settings to use Google Public DNS, be sure to write down the current server addresses or settings on a piece of paper. It is very important that you keep these numbers for backup purposes, in case you need to revert to them at any time.
We also recommend that you print this page, in the event that you encounter a problem and need to refer to these instructions.
Google Public DNS IP addresses
The Google Public DNS IP addresses (IPv4) are as follows:
8.8.8.8
8.8.4.4
The Google Public DNS IPv6 addresses are as follows:
2001:4860:4860::8888
The Google Public DNS IPv6 addresses are as follows:
2001:4860:4860::8888
2001:4860:4860::8844
Some devices require explicit values for all eight fields of IPv6 addresses and cannot accept the abbreviated :: IPv6 address syntax. For such devices enter:
2001:4860:4860:0:0:0:0:8888
Some devices require explicit values for all eight fields of IPv6 addresses and cannot accept the abbreviated :: IPv6 address syntax. For such devices enter:
2001:4860:4860:0:0:0:0:8888
2001:4860:4860:0:0:0:0:8844
Expand the 0 entries to 0000 if four hexadecimal digits are required.
You can use either address as your primary or secondary DNS server.Important: For the most reliable DNS service, configure at least two DNS addresses. Do not specify the same address as both primary and secondary.
You can configure Google Public DNS addresses for either IPv4 or IPv6 connections, or both. For IPv6-only networks with a NAT64 gateway using the 64:ff9b::/96 prefix, you can use Google Public DNS64 instead of Google Public DNS IPv6 addresses, providing connectivity to IPv4-only services without any other configuration.
Change your DNS servers settings
Because the instructions differ between different versions/releases of each operating system, we only give one version as an example. If you need specific instructions for your operating system/version, please consult your vendor's documentation. You may also find answers on our user group page.
Many systems let you to specify multiple DNS servers, to be contacted in priority order. In the following instructions, we provide steps to specify only the Google Public DNS servers as the primary and secondary servers, to ensure that your setup correctly uses Google Public DNS in all cases.Note: Depending on your network setup, you may need administrator/root privileges to change these settings.
Windows
DNS settings are specified in the TCP/IP Properties window for the selected network connection.
Example: Changing DNS server settings on Windows 10Go to the Control Panel.
Click Network and Internet > Network and Sharing Center > Change adapter settings.
Select the connection for which you want to configure Google Public DNS. For example:To change the settings for an Ethernet connection, right-click the Ethernet interface and select Properties.
To change the settings for a wireless connection, right-click the Wi-Fi interface and select Properties.
If you are prompted for an administrator password or confirmation, type the password or provide confirmation.
Select the Networking tab. Under This connection uses the following items, select Internet Protocol Version 4 (TCP/IPv4) or Internet Protocol Version 6 (TCP/IPv6) and then click Properties.
Click Advanced and select the DNS tab. If there are any DNS server IP addresses listed there, write them down for future reference, and remove them from this window.
Click OK.
Select Use the following DNS server addresses. If there are any IP addresses listed in the Preferred DNS server or Alternate DNS server, write them down for future reference.
Replace those addresses with the IP addresses of the Google DNS servers:For IPv4: 8.8.8.8 and/or 8.8.4.4.
For IPv6: 2001:4860:4860::8888 and/or 2001:4860:4860::8844.
For IPv6-only: you can use Google Public DNS64 instead of the IPv6 addresses in the previous point.
Test that your setup is working correctly; see Test your new settings.
Repeat the procedure for additional network connections you want to change.Note: There is no support for DNS-over-TLS in the base OS. To use DNS-over-TLS requires setting up a proxy resolver that supports DNS-over-TLS. Due to the complexity of the setup we do not describe it here.
=========================================================================
Automating Wi-Fi refreshes:
After you are done setting up Google DNS, you can automate your wi-fi refresh. Create a bat file and put it on your desktop. In the bat file put:
netsh winsock reset
netsh int ip reset
ipconfig /release
ipconfig /renew
ipconfig /flushdns
When you want to refresh your wi-fi, just run the bat file as administrator (running without administrator priveledges just refreshes the ipconfig setting which is enough for me but someone else may want to run as administrator to refresh netsh settings as well).
Restarting your PC is optional but I find that the ipconfig related refresh does not hold after restarting my PC and it slows down again. Someone else may want to restart their PC after they refresh netsh settings by running the bat file as administrator. Run the bat file as admin if you want to refresh netsh settings but it is not necessary to run bat file to refresh only ipconfig settings.
Expand the 0 entries to 0000 if four hexadecimal digits are required.
You can use either address as your primary or secondary DNS server.Important: For the most reliable DNS service, configure at least two DNS addresses. Do not specify the same address as both primary and secondary.
You can configure Google Public DNS addresses for either IPv4 or IPv6 connections, or both. For IPv6-only networks with a NAT64 gateway using the 64:ff9b::/96 prefix, you can use Google Public DNS64 instead of Google Public DNS IPv6 addresses, providing connectivity to IPv4-only services without any other configuration.
Change your DNS servers settings
Because the instructions differ between different versions/releases of each operating system, we only give one version as an example. If you need specific instructions for your operating system/version, please consult your vendor's documentation. You may also find answers on our user group page.
Many systems let you to specify multiple DNS servers, to be contacted in priority order. In the following instructions, we provide steps to specify only the Google Public DNS servers as the primary and secondary servers, to ensure that your setup correctly uses Google Public DNS in all cases.Note: Depending on your network setup, you may need administrator/root privileges to change these settings.
Windows
DNS settings are specified in the TCP/IP Properties window for the selected network connection.
Example: Changing DNS server settings on Windows 10Go to the Control Panel.
Click Network and Internet > Network and Sharing Center > Change adapter settings.
Select the connection for which you want to configure Google Public DNS. For example:To change the settings for an Ethernet connection, right-click the Ethernet interface and select Properties.
To change the settings for a wireless connection, right-click the Wi-Fi interface and select Properties.
If you are prompted for an administrator password or confirmation, type the password or provide confirmation.
Select the Networking tab. Under This connection uses the following items, select Internet Protocol Version 4 (TCP/IPv4) or Internet Protocol Version 6 (TCP/IPv6) and then click Properties.
Click Advanced and select the DNS tab. If there are any DNS server IP addresses listed there, write them down for future reference, and remove them from this window.
Click OK.
Select Use the following DNS server addresses. If there are any IP addresses listed in the Preferred DNS server or Alternate DNS server, write them down for future reference.
Replace those addresses with the IP addresses of the Google DNS servers:For IPv4: 8.8.8.8 and/or 8.8.4.4.
For IPv6: 2001:4860:4860::8888 and/or 2001:4860:4860::8844.
For IPv6-only: you can use Google Public DNS64 instead of the IPv6 addresses in the previous point.
Test that your setup is working correctly; see Test your new settings.
Repeat the procedure for additional network connections you want to change.Note: There is no support for DNS-over-TLS in the base OS. To use DNS-over-TLS requires setting up a proxy resolver that supports DNS-over-TLS. Due to the complexity of the setup we do not describe it here.
=========================================================================
Automating Wi-Fi refreshes:
After you are done setting up Google DNS, you can automate your wi-fi refresh. Create a bat file and put it on your desktop. In the bat file put:
netsh winsock reset
netsh int ip reset
ipconfig /release
ipconfig /renew
ipconfig /flushdns
When you want to refresh your wi-fi, just run the bat file as administrator (running without administrator priveledges just refreshes the ipconfig setting which is enough for me but someone else may want to run as administrator to refresh netsh settings as well).
Restarting your PC is optional but I find that the ipconfig related refresh does not hold after restarting my PC and it slows down again. Someone else may want to restart their PC after they refresh netsh settings by running the bat file as administrator. Run the bat file as admin if you want to refresh netsh settings but it is not necessary to run bat file to refresh only ipconfig settings.
Comments
Post a Comment