If your computer keeps disconnecting from the internet, try rebooting your modem and router, checking your network configurations, updating your network drivers, and running an antivirus scan to identify suspicious programs or malware.