There are times that the TCP/IP stack is corrupted due to a virus or other reasons.
There is a way to reset the TCP/IP stack , having the same result as removing and reinstalling it.
The command is:
netsh int ip reset resetlog.txt
or
netsh int ip reset c:\resetlog.txt
where resetlog.txt is the log file of the actions performed.
You can also reset the winsock using the command
netsh winsock reset
Notice that some programs will be affected running this command such as firewalls. Please reinstall them in such a case