cleaned the registry, oh the horrors that causes.
Let's hope it's OK. Not something I would do.
However there is a clue in your post about McAfee. Some of these internet suites drop the internet connection to protect the PC. Or when they expire.
There are other causes such as the date/time being wrong but given so few clues, it's a mystery still.