Why is the WiFi connection on the phone but not on the PC?
WiFi can work on your phone even without internet access. In the majority of PCs, you automatically get disconnected if there is no internet connection. However, if the internet is working properly on your phone, try to connect your PC with a LAN cable.