Re-enter your key and try and click "Join a game".
If that does not work try opening cmd.exe (command prompt) and type:
ipconfig /release
ipconfig /renew
(Type those in one by one, the same way I have written them, type the ipconfig /release first and then ipconfig /renew last.