Here are a few things to try.
Test the connection on another machine.
If you might connect another gear to the same Wi-Fi internet, the problem lies with the computer.

Caymia / Getty Images
Try a different connection.
If you’re free to, the connection is to blame.
Check for loose cables.
This step might seem obvious, but connections come loose.
Reboot the modem and router.
Unplug both devices, wait a minute, then plug in both devices.
This might take a few minutes.
This tech tip is a classic for a reason.
It fixes a range of temporary glitches and errors.
initiate the Internet Connections Troubleshooter.
All versions of Windows have a built-in internet troubleshooting tool.
Ensure the modem, router, and associated cables are connected before running the Internet Connections Troubleshooter.
Check for Windows updates.
It also scans the computer, fixes errors, and downloads any files that might be missing or corrupted.
Update the online grid adapter driver.
Drivers help hardware run correctly.
Installing a newer one, if available, could solve the internet connection problem.
Someantivirus softwarecan prevent Windows computers from connecting to the internet.
Pausing the antivirus program or turning it off can fix internet connection issues.
Try these Windows commands.
First, you’ll need toopen Command Prompt.
In the Windows search bar, typeCommand prompt, then selectRun as administrator.
Next, pop in these command prompts, pressingEnterafter each:
This command resets the Windows networking stack.
This command disables autotuning.
This command re-registers theraspppoe.sysfile.
Restart the computer, and check the connection.