To know the ports in Windows server

How to list the used tcp ports of a server?
I want to know LDAP port.
Is there any dos command to list this? or Where I want to check in GUI.
tell-meAsked:
Who is Participating?
 
i_campbellCommented:
You can use netstat to see which ports are listening or established. You can then use that output against known port numbers or you can use the pid to check against running processes in task manager.

netstat -ano would show you listening and established ports and their assosciated pids...  You can get quite a lot of output so if you just wanted to see listening ports you could use

netstat -ao |find /i "listening"

Try netstat /? to see the available command line switches.
0
 
Sam PanwarSr. Server AdministratorCommented:
0
 
Sam PanwarSr. Server AdministratorCommented:
0
Improve Your Query Performance Tuning

In this FREE six-day email course, you'll learn from Janis Griffin, Database Performance Evangelist. She'll teach 12 steps that you can use to optimize your queries as much as possible and see measurable results in your work. Get started today!

 
Sam PanwarSr. Server AdministratorCommented:
0
 
tell-meAuthor Commented:
Is there any inbuild tool or command in Windows ?
0
 
sparkymwCommented:
do you want to find what ports are open on your pc?

http://www.petri.co.il/quickly_find_local_open_ports.htm
i believe ldap is 389.

Otherwise if you want to know what ports program run as standard try website like this.

http://www.iana.org/assignments/port-numbers
0
 
tell-meAuthor Commented:
let me check one by one.

Thanks for all
0
 
Sam PanwarSr. Server AdministratorCommented:
In microsoft there is no better utility to scan port with cliet pc if you are server administrator and want to a tool which is use low resources then use nmap its nice i already send you tool link.
0
 
Rant32Commented:
Yes, "netstat -a" lists all used ports. Use "netstat -a -n" to show port numbers, otherwise it will try to resolve port numbers through the services defined in %systemroot%\system32\drivers\etc\services.

Above file's a good place to look, btw.

Also see
http://www.networksorcery.com/enp/protocol/ip/ports00000.htm
for a very good overview of known TCP/UDP ports.
0
 
icanhelpCommented:
Rant32 is correct.....this is the one you want.  Also if you want to "refresh" list on an interval do the following example for interval of every 3 seconds.

netstat -a 3

hope this helps

rc
0
 
tell-meAuthor Commented:
Sorry for the late payment :)
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.