Welcome to PCNET's Support & Help Pages

                                                

Home
Up                       

 

Winsock/Wsock32 Jump Page

You either have VERY erratic connections or you can't surf or e-mail at all. You've reinstalled DUN, TCP/IP and the dial-up adapter but you still can't do anything more than connect. What do you do? Try reinstalling Winsock.

Wsock32.dll and winsock.dll are both winsock. The older winsock.dll is a 16-bit app that was used in Win 3.X and Win95a. Microsoft came out with OSR2 Win95b versions that replaced winsock.dll with wsock32.dll which is a 32-bit version of winsock. The vast majority of people use the newer wsock32.dll because the original version doesn't work very well. All Win98 boxes use the newer wsock32.dll.

Choose the version of operating system that needs a winsock reinstallation:

Windows 95a | Windows 95B | Windows 98

Winsock.dll (Win95a)

Winsock.dll Repair For Win95a (pre-OSR2)

Winsock.dll is a major networking component in the Windows 95a (pre-OSR2) operating system. If it is missing or damaged then you will be able to connect but you won't be able to surf or do e-mail. You will also have problems if there are multiple copies of winsock.dll installed on your computer. Reinstalling dial-up networking, the dial-up adapter or TCP/IP won't fix this problem. This page will tell you how to find and fix that file.

Warning: If you are used to repairing wsock32.dll for Win95b then please note that this file is installed in C:\Windows rather than C:\Windows\System. 

1.    Begin by locating winsock.dll. Open Start -> Find -> Files or Folders and have your computer search for winsock.dll in the C: drive. It should be located in C:\Windows. It will probably be about 42 kb in size if it is uncorrupted.

2.    Remove any extra copies of winsock.dll so that there is only one copy. Restart your computer and see if you can surf the Web now. If you still cannot surf or do e-mail then put in a new copy of that file as described below. Your fix will depend upon whether you have the Win95 installation CD or cab files on your computer. Choose the correct option.

3-A.    Using the Win95 Installation CD:  You will have to be booted into DOS mode to do this. Using the MS-DOS prompt in Windows mode won't work. The problem is that you can't access your Win95 installation CD while you are in DOS mode. As a result, you will need to pre-copy the winsock.dll file from your installation CD to a folder before rebooting into DOS mode. We recommend that you copy it to your temp folder as follows: Put the installation CD into your computer. Click Start -> Find -> Files or Folders -> set the "look in" box to look in your CD-ROM drive (probably D: or E:) -> type in Win95_02.cab as the file to find and start the search. Once you find the file, double-click it open from the find window and locate the winsock.dll file. Right-click on it and choose "copy." Next: Open My Computer -> open the C: drive -> open the temp folder -> click the Edit menu and choose "paste" to copy the file to that folder. Remove the Win95 CD and proceed to step #4.

3-B.    Using Cab Files:   If you never received a Win95 installation CD then you probably have preloaded cabinet files (called "cab files") on your computer. You can find them by clicking Start -> Find -> Files or Folders -> type Win95_02.cab in the file name box -> make sure that the "look in" box is set to your C: drive -> start the search. Double-click open that folder from the Find window. Locate the winsock.dll file and right-click on it to choose the "copy" option. Next: Open My Computer -> open the C: drive -> open the temp folder -> click the Edit menu and choose "paste" to copy the file to that folder. Go to step #4.

4.    Reboot the computer in DOS mode by clicking Start -> Shutdown and then choosing the "reboot in DOS mode option." Type the following command at the command prompt when you've rebooted. This page puts J smiley faces for each space in the command. Just type one empty space wherever you see a smiley face.

        extractJ/aJC:\temp\winsock.dllJ/LJc:\Windows

5.    Reboot the computer into regular Windows mode after you've made these changes to make them take effect.

6.    Note: There are other ways to do this. We've tried to pick the easiest route.

 

 

WSock32.dll (Win95b a/k/a OSR2)

WSock32.dll Repair For Win95b (OSR2)

Winsock (wsock32.dll) is a major networking component in the Windows 95b (OSR2) operating system. If it is missing or damaged then you will be able to connect but you won't be able to surf or do e-mail. You will also have problems if there are multiple copies of wsock32.dll installed on your computer. Reinstalling dial-up networking, the dial-up adapter or TCP/IP won't fix this problem. This page will tell you how to find and fix that file.

1.    Begin by locating wsock32.dll. Open Start -> Find -> Files or Folders and have your computer search for wsock32.dll in the C: drive. It should be located in C:\Windows\System. It will probably be about 65 kb in size if it is uncorrupted.

2.    Remove any extra copies of wsock32.dll so that there is only one copy. Restart your computer and see if you can surf the Web now. If you still cannot surf or do e-mail then put in a new copy of that file as described below. Your fix will depend upon whether you have the Win95 installation CD or cab files on your computer. Choose the correct option.

3-A.    Using the Win95 Installation CD:  You will have to be booted into DOS mode to do this. Using the MS-DOS prompt in Windows mode won't work. The problem is that you can't access your Win95 installation CD while you are in DOS mode. As a result, you will need to pre-copy the wsock32.dll file from your installation CD to a folder before rebooting into DOS mode. We recommend that you copy it to your temp folder as follows: Put the installation CD into your computer. Click Start -> Find -> Files or Folders -> set the "look in" box to look in your CD-ROM drive (probably D: or E:) -> type in Win95_02.cab as the file to find and start the search. Once you find the file, double-click it open from the find window. Locate wsock32.dll and right-click on it to choose "copy." Next: Open My Computer -> open the C: drive -> open the temp folder -> click the Edit menu and choose "paste" to copy the file to that folder. Remove the Win95 CD and proceed to step #4.

3-B.    Using Cab Files:   If you never received a Win95 installation CD then you probably have preloaded cabinet files (called "cab files") on your computer. You can find them by clicking Start -> Find -> Files or Folders -> type Win95_02.cab in the file name box -> make sure that the "look in" box is set to your C: drive -> start the search. Double-click open that folder from the Find window. Locate the wsock32.dll file and right-click on it to choose the "copy" option. Next: Open My Computer -> open the C: drive -> open the temp folder -> click the Edit menu and choose "paste" to copy the file to that folder. Go to step #4.

4.    Reboot the computer in DOS mode by clicking Start -> Shutdown and then choosing the "reboot in DOS mode option." Type the following command at the command prompt when you've rebooted. This page puts J smiley faces for each space in the command. Just type one empty space wherever you see a smiley face.

        extractJ/aJC:\temp\wsock32.dllJ/LJc:\Windows\System

5.    Reboot the computer into regular Windows mode after you've made these changes to make them take effect.

6.    Note: There are other ways to do this. We've tried to pick the easiest route.

 

WSock32.dll (Win98) (system file checker route)

Restoring Winsock With Win98's System File Checker

Windows 98 makes it really easy to repair its version of winsock (called wsock32.dll) by using a utility called the System File Checker. Make sure that you have your Win98 installation CD ready or a Win98 cabinet file (.cab) where the winsock can be retrieved.

Let's begin with locating the "cab" files to see if we even need the Win98 installation CD. Click the "start" button and choose the "find" command to choose "files or folders" as pictured below.

The "find" window is pictured below. Make sure that the "look in" box is pointing to the C: drive. If not, click the drop-down arrow at the right side of that box to choose the C: drive.

In the "named" box, type w*.cab and hit the "find now" button. You will get a response similar to the one pictured below. In that example, you can see that the "in folder" column points to a bunch of cab files in "C:\win98" so write that down. You'll need that address soon.

Click the "start" button and choose "run" as shown below.

Type in "sfc" in the open box (short for "system file checker") and then click OK.

This is the window that will pop-up. Click a black spot in the "extract one file from installation disk" as shown below. Type in wsock32.dll and then hit the "start" button at the bottom.

The "save file in" box will very likely have the correct final destination for the new installation of winsock. If not, type in C:\WINDOWS\SYSTEM as pictured below. The trick is finding the answer to the "restore from" box. That is why we ran the "find" command earlier. Click the "browse" button to the right of that box.

The following window will pop-up. Click the + sign to the left of (C:) and locate the address of the cab file that we found earlier. In our earlier example, the file was located in the win98 folder under the C: drop-down. It is also commonly located at C:\windows\options\cabs. The picture shows where you would find the C:\win98 folder.

You will not see a file called wsock32 so don't worry. Just select the right folder and click OK.

Note: If you were unable to locate cab files but you have your Win98 installation CD then click the + to the left of D: or possibly E: to find the Win98 folder on the installation CD (after you've put that CD in your CD-rom drive).

Once you've clicked OK, your computer will prompt you to create a backup copy and then it should install the fresh version of winsock (wsock32.dll) before prompting you to restart your computer. Reconnect to the internet and you will probably be able to surf, e-mail and chat.

 

Back ]