How to repair TCP/IP and Winsock2004.12.01 10:24 by Philip
Tags: Winsock, TCP/IP
Internet connectivity problems can often occur due to malware, misconfiguration, or corrupted networking software installation. When this occurs, packets don't get transferred over the network even thoguh it may seem you're connected to the internet. When you start Internet Explorer, you may receive an error message: "The page cannot be displayed"
In addition, you may receive one of several other error messages while using the "ipconfig" command:
You can use the methods below to recover from Winsock and TCP/IP corruption and reset them to their default state.
Use the TCP Optimizer to reset TCP/IP and Winsock
The below command resets TCP/IP to its default state under Windows XP SP2 and newer OSes. You will have to use elevated command prompt under Vista/Windows 7:
Note: If you'd like to generate a log file of the changes, append a logfile path to the above command, i.e.: "netsh int ip reset c:\resetlog.txt". Changes will be appended to the end of the log file if it exists.
The above NetShell (netsh) command-line tool resets the following registry branches to their default state:
Winsock (the Windows Sockets API) defines how software should access network services, especially TCP/IP. It defines a standard interface between TCP/IP client appliactions (such as an FTP client or a web browser) and the unterlying TCP/IP protocol stack.
To repair Winsock and reset it to its default state, start command prompt (elevated command prompt under Vista/Windows 7) and type the following command:
Note: If you'd like to generate a log file of the changes, append a logfile path to the above command, i.e.: "netsh winsock reset c:\resetlog.txt". Changes will be appended to the end of the log file if it exists.
Reinstall TCP/IP under Windows 2000
You might have to reinstall TCP/IP to help resolve some issues, such as improperly configured bindings, dialup clients that are unable to connect to the RAS server, NIC drivers that do not properly bind to the TCP/IP protocol, etc.
To remove TCP/IP in Windows 2000:
Note: this method is only available under older Windows OSes (pre-XP). Later Windows versions consider the TCP/IP stack a core component of the operating system and disable the uninstall option for the TCP/IP protocol.
MS KB 299357 - How to Reset Internet Protocol (TCP/IP) in Windows XP