... both my PC and phone won't connect.
Your phone doesn't connect to the internet through your computer. It connects to the internet through your router.
Your PC also connects to the internet through your router.
It's the router that creates your local network, so you should setup and manage your network through the router. If you originally setup your local network through Windows, try to undo what you did. Then, dig out your router's owner guide and follow its directions to setup your local network. When your network is setup correctly, it's virtually bullet-proof.
This setup is not only technically correct, it is secure, and it spares your local network from anything having to do with Windows. Even if Windows were to get totally messed up, your network would be unaffected.