After fighting this problem for hours on my Windows 8.1 PC, I finally found a working solution.
In my case, it seems the problem was caused by my network being "public", instead of "private". When in public mode, there are some security limitations that will prevent the wireless connection with the phone.
Here's a good guide to how to change that network setting:
... View more