If you are using Windows lol I feel bad for you! If you are using Linux you won't have these problems.
Windows 7, 8, 8.1 & 10 will all have problems randomly losing connection to things that worked fine yesterday or even five minutes ago. Here are a few things to try that fix 99% most Windows problems.
Problems on local work station or server - try these on the local work station/computer.
1. Always with Windows restart the computer when anything stops working. If this doesn't fix it go to number 2.
(Software, Hardware, Sound, Printers, Monitors, Keyboards, Mouse...)
2. Turn off the computer, unplug the power cord, unplug the device (Printers, Monitors, Keyboards, Mouse...) that's not working. If the device has power (Printer, Scanner, Monitor) also shut it down and unplug it. Then plug everything back in and turn everything back on. If this doesn't fix it go to number 3.
3. Check the inside of the computer if you see a ton of dust clean it. Check the wires and cables make sure they are all plugged in and working. Replace any that look bad, replace the USB cables if you have extra's. If it's still not working the device maybe need to be replaced. Check it on another computer if you have one.
On the server if software, hardware, sound, printers, monitors, keyboards, mouse...
1. Log off the server NOT DISCONNECT log off. Restart the local work station/computer, check to see if that fixed the problem? If not go to number 2.
2. If the local work station/computer and server not having problems with software, hardware, sound, printers, monitors, keyboards, mouse... You will need to restart the server and it can only be done with an account that has Administrative rights.
Open a Dos command prompt. (either on the start menu in a folder called "Dos" or just search command prompt)
Once you have found it - Right Click and run as Administrator.
In the box type in: shutdown /r
Hit ENTER.
You and everyone on the server will get a warning that Windows is shutting in less then one minute. It should take one to two minutes before you can log back on. Check to see it the problem is fixed? If not time to call your IT people.
My System:
Case: Thermaltake Core V71 Tempered Glass.
Motherboard: Asus Prime TRX40-Pro.
CPU: AMD Threadripper 3970X@Auto OC.
Water Block: EK Velocity sTR4 copper & nickel.
Radiator: Thermaltake Pacific CL429 64mm pure copper.
Water Pump & Res: 320 GPH Pond Pump, 5 Gallon Reservoir.
Memory: 64 gigs Corsair Vengeance DDR4-3600 18-19-19-39 CR1.
Video Card: Asus TUF AMD RX 6900XT OC 16 gigs
Hard Drives: 1 Crucial 256gig M550, 2 Crucial 2TB SSD's,
1 WD 10TB 256meg cache, 1 WD 5TB 128meg cache, 2 Seagate 4TB 256meg cache.
Power Supply: Corsair 1050 watt SINGLE RAIL.
OS's: LINUX Xubuntu 20.04 LTS x64 and Windows 10 Pro.