Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Mapping (listening) ports to services 1

Status
Not open for further replies.

tpms2000

Programmer
Jan 20, 2003
19
EU
I am completely new to this so apologies in advance if it's a dumb question.

I am writing an installation guide (for an IBM product on Windows) - part of which has the following -

Check that the following ports are free:
a) 80 (HTTP)
b) 383 and 636 (LDAP)
c) 9080 (Websphere)

If I run "netstat -a" I can see all listening ports
If I run "Start > Control Panel > Administrative Tools > Services" I can see services and their status

How can I see which service is using which port so if any of the above ports were already being used, I would know which service to stop?

Thanks in advance
 
I use the following and a cmd script to do something similar.

Code:
netstat -a -b -n
pause

It produces the results that you are looking for I believe. When you do it look for the svchost.exe entries, this will list the services that are in use. You may need to do internet lookups to match the dll files to the services.

Greg Palmer
Freeware Utilities for Windows Administrators.
 
Install a good firewall and check the logs
They have inside every thing that you need

Which *.exe accessed which protocol, at which port, to what destination ip and to what destination port.

Also a sniffer will help you see what exaclty is being transfered

Good Luck
 
Firstly, many thanks for the responses.
Just to clarify - I am looking for a dynamic mapping of ports and services.
In response to "why am I closing a service" - IBM Websphere's HTTP server uses port 80 therefore when installing this on Windows Server 2000, the World Wide Web Publishing Service should be closed before installing the IBM stuff.
Finally - is there a common directory where can I find firewall logs on XP?
 
Some things for you to look at.


Availability and description of the Port Reporter tool

Description of the Port Reporter Parser (PR-Parser) tool

832017 - Port Requirements for the Microsoft Windows Server System
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top