Com port 1 and 2 are physical ports, com port 3 and 4 are virtual ports. But I don't know what part of Windows you should reinstall to get them back again, especially not in Windows XP. Most likely is the modem driver, (http://www.computing.net/windows95/wwwboard/forum/163716.html is a happy ending story on that!), it but the New Hardware wizard is also mentioned in this context (see http://www.annoyances.org/exec/forum/win98/1094322592).
Using your recovery CD would surely help. But probably (it might depend on the maker) it would erase everything that's on the hard disk.
I should start with reinstalling the modem driver. You should be able to find it on the manufacturers site, or else contact their tech help.
Hope this helps.
Kees
This may be a weird question, but my laptop cannot find my Com3 port to connect to the internet. I use dial up (was using a wireless LAN system before- don't know if that matters) and now my laptop cannot find the com3 port to connect to the internet. I have a Toshiba satellite A15-127- less than 2 years old. I use Windows XP and Earthlink to connect to the internet.
When I try to connect, I get an error message that says my com port is not available. When I check to make sure the modem is is working properly, it says it is tied to a com3 port. I have queried the modem and i get a message that the com port may be in use by something else. However, when I go to the Device Manager, i don't have a COM port listed at all!!
I've tried to do a hardware scan for the com port, but nothing comes up. And when I tell the computer to add a com port, it tells me that it doesn't know the specifications for a com port.
Should i use the recovery CD to reinstall the port and would this eat everything on my hard drive? Or is this a clever virus or worm that is hiding my com port? I'm very confused and any help is greatly appreciated. Thanks.

Chowhound
Comic Vine
GameFAQs
GameSpot
Giant Bomb
TechRepublic