Try shutting down your computer, and then unplug your router. PLug the router back in and wait about a minute for it to flash its lights. Now restart your computer.
What kind of router are you using?
Also go into CMD like Doberman said, try typing:
ipconfig /release
ipconfig /renew