netsh winsock reset

Source: Internet
Author: User

I was so overwhelmed by the recent need to install Git on a virtual machine and then host a project. I uninstalled VMware workstation this afternoon, but something strange happened and my Google Chrome browser was not able to browse the Web. The following interface appears when you open the browser:

At this time I entered the Sohu home page also appeared a similar hint, I think it may be DNS error, then I entered the http://localhost, found normal (this is because the IIS server installed locally, this I knew beforehand), so I concluded that this is not a browser problem. Then again confirmed the speculation, I opened the Firefox browser found the same problem. But strange things happen again, I opened the system comes with the Internet Explorer, found to be able to browse the Web. This is the time to wonder, is this a browser problem?

Then I opened the C:\Windows\System32\drivers\etc\hosts file under the C drive and found that the same as before has not been modified by the abnormal,

So I entered 209.116.186.217 in Google Chorme and found the same problem.

So I couldn't think of the solution ... So the Baidu ...

Results Baidu Positive solution: At the command line input: netsh winsock reset

Why do you do this???

------------------------------------------------------------------------------------------>>>>> >>>>>>

Let's see what the Netsh command is.

The General command of Netsh is the operation of the computer network configuration.

Winsock is the Windows network programming interface, where Winsock works at the application layer, which provides high-level data transfer programming interfaces unrelated to the underlying transport protocol, and Winsock is related to the TCP/IP protocol stack in the Windows operating system. The command netsh winsock reset is a reset to the Winsock directory (in the registry we can see the Winsock and Winsock2 directories). In summary, the cause of the problem may be caused by the process of uninstalling the software to corrupt the relevant directory of Winsock, or the malware modifies the content in the Winsock directory, resulting in a problem with the TCP/IP protocol stack within the Windows system. But why does this not make IE browser inaccessible to the network??? And to add that currently, for example, 360 of software accounts can still log in. So the question can be changed to "why is this just causing Google Chorme and Firefox not to have normal access to the network?" ”

My own view: Exceptions between browsers (Google Chorme is inaccessible and IE is accessible) may be due to the fact that other browsers accessing the network require the network access interface provided by Windows (which is already determined by writing the browser software), and IE The browser does not have access to this network programming interface, which may be because when writing the Windows operating system, programmers simply provide a network access interface for other programs to use, and their own use of another, the benefit is not dependent on the operating system and attached to the operating system!! In addition, the difference between browser and non-browser may be because the HTTP protocol in the TCP/IP stack is changed, and the other protocols do not change.

Finally, add two newly learned examples:

1 Netsh instances: Enable the ability of the wireless WiFi to be carried by Windows itself

Netsh wlan show dirvers//check whether the hosting network is supported

Netsh wlan set hostednetwork mode=allow ssid= your network name key= password//settings turn on network hosting and set up sharing network information

Set up to share a network

Netsh wlan start hostednetwork//Open Network

2 Example of Winsock: processing after deleting a Winsock file

Actually wrote to the end still did not find the root cause of the problem, I think this can only be learned in the future slowly experience it

2014-07-30 22:38:05

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.