I've been reading through the forums - and many people have this problem, awaiting key code authorization when trying to connect to a server, and it times out. i have a solution: Problem:
You cannot connect to any cod4 server, you get "Awaiting key code Authorization" until the server times out. Reason:
Cod4 cannot connect to the cod4 master server (could be dns related?) You can check this yourself by opening the console, you will see several failures to resolve cod4master.activision.com The Fix:
Manually add the ip address and host name to your computers hosts file:
Add this line to the file, save and exit.
P.S if the ip address for cod4master.activision.com changes then you will need to update the file. AND
remember to backup your hosts file before you modify it, just incase