three things to try.
1. temporarily turn wifi security off (none) at the wifi access point/router. See if it it is the security type that your PC is not compatible with. When you were able to connect at a different location what was that security type?
2. manually assign a free IP address on your router network, and manually assign your router’s address as the gateway, and manually give a dns of 8.8.8.8. See if your PC is having trouble with dynamic IP settings.
3. purchase an external USB wifi adapter, they are inexpensive see if that works.
I really like the external usb adapter idea. Wrote it down.