It's a strange one.
Login to your router and check your phone is actually on your wifi network with an IP address in the same subnet.
If it is maybe try disabling windows firewall entirely on your PC. If that works you know it's a firewall issue.
Another thing to check.
Right click the start menu and click "run"
Type in cmd and hit enter. This will open a command window.
Type netstat /a
This will show all the current connections your PC has open on the network and what ports it is listening on. You want to check if any of the local address entries end with :27304