OK, now I installed some updates. (I may have been mistaken about previously installing updates, it installed a lot of updates this time.)
The computer restarted and came back to "connected, no internet".
I opened CMD and ran ipconfig /renew and got this:
No operation can be performed on Local Area Connection* 1 while it has its media disconnected.
No operation can be performed on Local Area Connection* 2 while it has its media disconnected.
After it hung for 2 minutes, I turned wi-fi off and on and and then I got this:
An error occurred while renewing interface Wi-Fi : The operation was canceled by the user.
No operation can be performed on Bluetooth Network Connection while it has its media disconnected.
Then I restarted the router. After taking a while to connect (about a minute) I'm on the internet again.