Had a laptop that would not connect to the internet. Either wired or wirelessly it would not be able to get an IP address from DHCP. I found this in the helpful Microsoft knowledgebase article 817571 (http://support.microsoft.com/kb/817571). Essentially, the Windows sockets registry subkeys have become corrupted and must be replaced:
Method 1 exports the subkeys, then recreates them, other methods involve copying the keys from an operational, similar computer.
Use Registry Editor to export and delete the Winsock and Winsock2 registry subkeys, and then remove and reinstall TCP/IP on Microsoft Windows 2000 or Microsoft Windows XP. To do this, follow these steps.
Export and delete the corrupted registry subkeys
- Insert a floppy disk in the floppy disk drive of the computer whose registry entries you are exporting.
- Click Start, click Run, type regedit, and then click OK.
- Locate and then click the following registry subkey:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Winsock
- Do one of the following steps, depending on the operating system:
- For Windows XP, on the File menu, click Export.
- For Windows 2000, on the Registry menu, click Export.
- In the Save in box, click 3½ Floppy (A:), type a name for the file in the File name box, and then click Save.
- Right-click Winsock, and then click Delete. When you are prompted to confirm the deletion, click Yes.
- Repeat steps 3 through 6 for the following subkey:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Winsock2
Note Each .reg file that you save must have a different name.
- Right-click Winsock2, click Delete, and then click Yes.
- Quit Registry Editor.
Windows XP-based computer
Reinstall TCP/IP on a Windows XP-based computer
In Windows XP, the TCP/IP stack is a core component of the operating system. Therefore, you cannot remove TCP/IP in Windows XP.
- Install TCP/IP on top of itself. To do this, follow these steps:
- In Control Panel, double-click Network Connections, right-click Local Area Connection, and then click Properties.
- Click Install.
- Click Protocol, and then click Add.
- Click Have Disk.
- In the Copy manufacturer’s files from box, type System_Drive_Letter:\windows\inf, and then click OK.
- In the list of available protocols, click Internet Protocol (TCP/IP), and then click OK.
- Restart your computer.
This did the trick for me. I needed to reinstall the TCP/IP for both the LAN and wireless connections.