My Itunes stopped being able to connect to the apple store some time ago, probably after an update. And while I don’t use Safari often (just for site compatibility testing), it wouldn’t connect to the internet either.
I advise you to save any work and close all programs first – when I did this my memory went to 100% and the PC was unresponsive and I had to forcefully reset it – it didn’t cause any problem though.
Open a dos command box in administrator mode:
If your cmd box is in your start menu, you can right click and choose “run as administrator…”
you can also type cmd in the run box and press ctrl-shift-enter rather than just enter.
Now simply type:
netsh winsock reset
Followed by return of course. You’ll be told you have to reboot.
After rebooting, it will all be working!