Windows can share ports. For example IIS and WinRM share port 80. Is there any way to query this information?
A:
Yes. Exacly nmap
program can examinate what application listen on what port, he have rules definition for each application and this program checks who program rule is working on this port (by sending, receiving data and analyze this).
Svisstack
2010-09-27 12:50:26
A:
netstat -ab
I'm not aware of a programmatic way (and you did not specify a programming language
mhaller
2010-09-27 12:51:46
A:
netsh does the job
netsh http show servicestate verbose=no
This will list all endpoints registerd in httpsys, all entries that starts from is actually sharing port 80.
Mike Chaliy
2010-10-22 19:21:45