Fix "Unable to Find Package" NuGet Error in Visual Studio C#
Sometimes you may find that your WIFI is connected and when you go to the browser to search for something then you find that "No Internet" message. This indicates that you do not have Internet Access.
Let's look at how to fix this:
To fix this issue we will use the help of Command Prompt.
1. First Open the Command Prompt as Administrator.
Goto search and type Command Prompt and Right click on Command Prompt and select Run as Administrator
fig. Run as Administrator
2. Type the following command.
ipconfig /flushdns
This command will flush the DNS cache which is a database that stores information about DNS servers on your computer. If you flush it then it may help you to fix problems related to WIFI Connection.
fig. ipconfig /flushdns
3. Type Second Command:
ipconfig /release
This command is also used to troubleshoot network problems. It releases the currently assigned IP address configuration of the network adaptor. If you have problems with the internet then you can try releasing your IP address. The next command will again renew your IP address.
fig. ipconfig /release
4. Type Third Command
ipconfig /renew
This command will renew the IP that you have released by the previous command. This command assigns a new IP address from the DHCP server.
fig. ipconfig /renew
5. Type Fourth Command
route /f
This command will clear all the routing tables that the operating system uses to determine how to reach specific destinations on the network. Executing this command will remove all routes that specify gateway addresses.
fig. route /f
6. Type Fifth Command
netsh winsock reset catalog
Executing this command will reset the Winsock catalog in Windows, which serves as a database of network settings that the operating system uses to interact with other computers on the network.
Running this command will help to forget all of its network settings and initiate a fresh start.
fig. netsh winsock reset catalog
7. Type the following Sixth Command
netsh int ip reset reset.log
This command will reset the TCP / IP stack and finally create a log file called reset.log where all logs are stored. If you run this command then the operating system is forced to forget all of its TCP/IP settings and initiate from the beginning again.
fig. netsh int ip reset reset.log
If you get an access denied issue while running this command then follow the below tutorial to fix it.
Also read netsh int ip reset access Denied issue. How to fix it ?
In this tutorial, we will try to fix the access
And after fixing again come and run this same command.
8. Then restart your computer
After you have restarted your computer again go to the command prompt and type:
ping google.com
If you get a response then your internet connection is working properly.
If this does not help you then check cable connections, restart your router, network adapter is properly configured or not , the internet service provider is up and running. If nothing helps then consult with an IT technician for help.
Conclusion:
These command helps you to fix internet access-related problem.