windowsWhen you have network connectivity problem and you have done all the checking like LAN cable check, switch/router power-cycle and yet you are still unable to get an IP address from your DHCP server or It shows limited network connectivity. Then, you might need to reset your winsock. This winsock fix will restore the winsock related libraries to its stock state.

Winsock is a Microsoft Windows DLL file that provides the interface to TCP/IP services, essentially allowing Windows to use Web browsers, FTP programs, and others.

Here’s how to reset your winsock in windows XP / 200(x)

1. Open the command prompt

2. Type in “netsh winsock reset” (without the quotes)

3. After resetting winsock, Restart your computer.


If you are using Windows Vista or Windows 7/8/10 then you will need to run the command prompt or cmd.exe as Administrator and proceed to step 2 above.

That’s it, you have successfully reset your winsock.

For those who likes to use the click and fix solution, you can download the Winsock XP Fix utility from here.

Your comments are always appreciated so feel free to leave them on the comment box.


  1. vimal says:

    i want to reset firewall what is the command for this setting

    • ammehhh says:

      I did the Winsock reset and it messed up my software I can’t connect to my. WiFi how do i undo this

  2. mikeb505 says:

    i typed in Command Prompt “netsh winsock reset” (without the “) but it said this: Initialization Function InitHelperDll in NSHHTTP.DLL failed to start with error code 10107
    The requested operation requires elevation

    help please

    • Batman says:

      You need to have an administrator privilege to perform this command

  3. waseem says:

    very usefull

  4. George says:

    Sounds like you need to be an admin to run the winsock reset function. This usually happens when you are running in vista. You need to go to start / all programs / assocories

    THen right click on command prompt

    Click run as administrator

    You should be able to run the command at that point.

  5. Itai says:

    Can you please ellaborate on what is it that actually being reset?

    Is it a kind of “reset to initial configuration” kind of action?

    I am asking that beacuse I don’t understand the point in winsock reset if I then restart the computer?

    10X in advance

  6. garrett says:

    ive heard of this before you are reseting the ip or somthing so it links up with the right one when it reconnects i believe

  7. crynbox says:

    it’s simple all u have to do is run it as admin.go start then RUN type cmd in the box and you will get a dos command window look on the task bar and right click the cmd icon and then choose command prompt right clicking on it left click on run as admin copy paste your command enter hope it helps

  8. Maurice Forde says:

    Thank you, thank you, thank you it worked a treat !

  9. Frank Romero says:

    Very Helpful I am a Technician at Staples and found this very useful as a last option of troubleshooting

  10. rajkiran says:

    guys am tech support executive for verizon dsl…..

    and i recently came across these problems with the lan saying limited or no connectivity

    the best solution is netsh winsock reset

    but yeah sometimes enabling and disabling the lan would work

    but uninstalling and re-installing the LAN drivers will not fix the problem ….you can avoid this step

    sometimes typing ipconfig /release and ipconfig /renew would also fix

    soo jus to reduce the time for the limited or no connectivity issues best option is go to command prompt and type netsh winsock reset

  11. lotsopa says:

    it is very useful and it fix my computer

  12. lotsopa says:

    run “cmd”
    Press “Enter”
    Type the cmd command
    “netsh winsock reset”
    and then
    restart your computer
    after restarting your computer
    go to start
    and then press “sfc /scannow”(include the space)

  13. lotsopa says:

    Use the Netdiag tool
    To use the Netdiag tool, you must install the Microsoft Windows XP Support Tools. To do so, follow these steps.

    If you already have Support Tools installed, go to the second procedure in this section.
    Insert your Windows XP Setup CD, and then locate the Support\Tools folder.
    Double-click the Setup.exe file.
    Follow the steps on the screen until you reach the Select An Installation Type screen.
    On the Select An Installation Type screen, click Complete, and then click Next.

    If you already have Support Tools installed, go to the second procedure in this section.

    When the installation is complete, follow these steps:
    Click Start, click Run, type Command, and then click OK.
    Type netdiag /test:winsock, and then press ENTER.

    The Netdiag tool will return the test results for several network components, including the Winsock. For more details about the test, use /v at the end of the netdiag command: netdiag /test:winsock /v

  14. Vico says:

    Hi, Thanks for the advise, but I got an error whenever I run the ‘netsh’, a pop-up win stating ‘The procedure entry point MigrateWinsockConfiguration could not be located in the dynamic link library MSWSOCK.dll’ so I tried to dl the fix suggested but it tries to connect to internet! this doesn’t make sense bc if you have problems with winsocks you don’t have internet.

  15. Brian says:

    Hi. I got the error “the procedure entry point migrate winsock configuration could not be located mswsock.dll” for like 6 months now and when I came across this site I immediately followed the “netsh winsock reset” step in the command prompt but it’s only giving the the message: “The following helper DLL cannot be loaded: IFMON.DLL” and then it says “the following command was not found: winsock reset. What should I do?

    Please assist. A million thanks in advance!

  16. Namee says:

    So, i have this problem… I runned mdm and entered “netch winsock reset” and rebooted my computer then some apps and programs stopped working so I re-installed them all and some of them still don’t work. So I’m wondering how can i undo this “netsh winsock reset” to how it was before this.


  17. Scott Logan says:

    To EVERYONE who contributed to this forum line of questioning with suggestions, experiences, ideas, and complaints: THANK YOU SINCERELY!!! This represents the very BEST of the web community and of the world at large. I came on here Frustrated that my laptop wouldn’t connect, to my network at school. And in short order, your collective suggetions FIXED THE PROBLEM. So my heartfelt THANKS to all of yuou, whether you had the right answer or not. I LEARNED something, that will servbe me well for the rest of my computing days. I will be sure to pass this along to anyone else that I know tha faces the same problem. HAVE A GREAT WEEK. (Yes I know that capitals are considered shouting, but darn it – I’m pretty happy and grateful.


  18. Scott Logan says:

    PS- Sorry about the misspelled words. Too lazy to spell check, and just typing too fast. Later all!

Leave a Reply

Your email address will not be published. Required fields are marked *