Reinstall the TCP/IP protocol stack under Windows

Source: Internet
Author: User

First, Windows reload TCP/IP protocol
The first two days under Windows to install the development environment, the system's TCP/IP protocol stack to kneel, resulting in the system can not ping localhost, can not create sockets in the program, etc... The TCP/IP protocol stack under Windows 7 (64bit) was then re-installed. Tried a lot of ways to find a way to use: 
(1) Delete registry key value  
      Start-run--regedit, find  
 
HKEY _local_machine\system\currentcontrolset\services\winsock2
, remove the two  ,
(2) Reinstall Protocol  
      Local Connection--Properties--Install--protocol--add--Import from hard drive--select%windir%\inf folder (typically C:\Windows\inf)--Select TCP/IP protocol V4 
(3) Restores the TCP/IP protocol stack to its initial state  
      administrator privileges to run cmd, netsh int ip reset C:\resetlog.txt. Where C:\resetlog.txt is the logging, be sure to specify.  
(4) Restart

ii. use of the netsh command
Netsh is a command-line scripting utility provided by the WINDOWS2000/XP/2003 operating system itself that allows users to display or modify the network configuration of the currently running computer locally or remotely. Netsh can also save configuration scripts in a text file in order to archive, back up, or configure other servers.
The Netsh feature is really powerful, such as
Show current IP:NETSH interface IP show addresses
Show current DNS:NETSH interface IP show DNS
Reset the TCP/IP protocol stack: netsh int ip reset;
Reset Socket service: netsh winsock reset;
Empty the DNS cache: Ipconfig/flushdns (OK, I'm in the mess)
See also file: netsh usage details

Reinstall the TCP/IP protocol stack under Windows

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.