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.