Step 2: In Notepad, type in the following commands which will be run to refresh a computer’s network settings.
The “release” switch will release your current IP address settings. The “flushdns” switch will flush the DNS resolver cache. The “renew” switch will renew your IP address settings.
Step 3: Now click on the “File” menu and select “Save As”. Change the “Save As Type” field to “All Files” located near the bottom of the window. Now enter a “File Name” such as “Refresh.bat” without the quotes. It is important that you put the .bat extension on the end of the file name or you will not be able to execute it as a batch file. Choose a “Save In” location and click the “Save” button to save it.
You will not have a new icon on your desktop, if that's where you saved it. Double-click on it, and a command window will pop up and refresh your network settings.
If during refresh, you see an error in flushing the DNS Resolver Cache, your DNS service may not be running. Some PC tools will shut this service off in order to optimize the performance. You can fix this by going to Start > Run and type "services.msc" (without the quotes)
The Services window will open, the services are sorted alphabetically.
Right-click on the DNS service and go to Properties. In the Properties window, click Start, then change the startup type to Automatic. Click Apply, & then OK. Now the Refresh.bat will work as it's supposed to.
**Remember, these commands will only work if the computer is set up to obtain an IP address automatically and will not work if the computer has a hard-coded IP address.**