Sometimes the TCP/IP is configured improperly, or is damage or corrupt which can cause connection problems or not able to connect at all. After trying everything else to connect, resetting the TCP/IP may work.
Here's 2 ways on how to do that in Windows 8.
Command Prompt Method:
Go to the search box and type in cmd and run the command prompt as Administrator.
At the prompt, type in netsh int ip reset resettcpip.txt and hit Enter.
When it's complete, restart your computer.
Search Box Method:
Go to the search box and type in netsh int ip reset resettcpip.txt
and click on the icon that appears in the result window.
That's it, restart your computer.