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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Listing ports

Status
Not open for further replies.

grittyminder

IS-IT--Management
Oct 18, 2005
53
JP
How can I list all ports w/ additional information associated with each port?
 
I checked... no there is not (at least not any that I could find, and I searched very hard).
 
In a console window type netstat /?

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
Thanks for the netstat suggestion. It's close, but netstat doesn't give me all the information I need. Okay, let me describe what I'm trying to do (and maybe someone can tell me if this is even possible). I'm trying to make a list of all the services running on a server and the ports on which each of the services is listening on. What I thought I might be able to do is use Win32_Service to enumerate the difference services and their associated process id, then find some way to enumerate through the ports, which should also have an associated process id. After that I just match the process id's to each other and, boom, I have a comprehensive list. Sounds easy, but I haven't been able to find the port information...
 
MSCOMM, eh? Thanks for the suggestion. I'm going to go check that out right now.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top