Offline with internet connection

I have been using Sketchup Pro 2018 for years with no problem and then yesterday it started with this problem of saying its offline even though I have full internet connection.
what do I do ?

Please don’t double post!
See SketchUp thinks you don't have an Internet connection - #8 by TBooker100