How to Fix the ws2_32.dll Error in Windows XP

Written by tim mammadov
  • Share
  • Tweet
  • Share
  • Email

A DLL, or Dynamic-Link Library, file contains programming code that can be used to perform a specific function by either Windows or a third-party software. Programmers make programs compatible with a DLL instead of including the same programming language for the same function in every application. This way a program can borrow a DLL whenever it needs to run a specific function, and the application takes less space on the hard drive as a result.

Ws2_32.dll, for example, is used by Windows for Internet and network connections. If the file is corrupt or missing you might not be able to connect to a network, and you will receive an error message. Fortunately, you can restore the Ws2_32.dll file and fix the error for free.

Skill level:


  1. 1

    Download the Ws2_32.dll file.

  2. 2

    Right-click the saved DLL file and click "Copy." Go to the "Start" menu, click "Computer," double-click the "C:" drive, double-click the "Windows" folder and then the "System32" folder. Right-click anywhere in a blank space and click "Paste."

  3. 3

    Go to the "Start" menu, type "run" in the "Start Search" box and press "Enter." Type "Regsvr32 "C:\Windows\System32\ws2_32.dll" in the search field and hit "Enter" to register the DLL. Click "Yes" in the pop-up to confirm the registration.

  4. 4

    Restart your computer.

Tips and warnings

  • Some downloaded files might come in an archived ZIP format. You need either WinZIP or WinRAR archiving software to extract the file first. Then follow the instructions starting with Step 3.

Don't Miss

  • All types
  • Articles
  • Slideshows
  • Videos
  • Most relevant
  • Most popular
  • Most recent

No articles available

No slideshows available

No videos available

By using the site, you consent to the use of cookies. For more information, please see our Cookie policy.