If Call of Duty 4 on PC isn't letting you connect online, the game may need to be updated to the latest version. Installing the proper patch often resolves connection issues.
You can find one version of the update here:
https://www.gamershell.com/download_28304.shtml
Make sure your game is patched and that your internet connection is stable before trying again.