I had a network connection and internet access but couldn’t get online.
None of my web browsers worked. IE, Chrome, Firefox, Opera, Safari etc…
This happened because of malware or a virus.
Here is a possible solution.
in the box that reads “Search programs and files”
Open a command prompt by typing: cmd
Type: netsh winsock reset > ENTER:
Now restart the computer and try to go online.