Fixing winsock

Cause & Problems —
Sometimes, winsock in windows may get corrupted/damaged and makes your PC disconnected from the network even with the correct internet setting, missing IP in network connections, or even makes you unable to open your browser.

Solutions —
1. Use softwares such as WinSock XP Fix, or
2. Execute these commands one by one in the command prompt as administrator, then restart your PC after each command
— netsh winsock reset catalog
— netsh int ip reset reset.log
— netsh int ip reset logfile.txt
— netsh int ipv4 reset reset.log
— netsh winsock reset