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