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?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Sam PanwarSr. Server AdministratorCommented:
Sam PanwarSr. Server AdministratorCommented:
Sam PanwarSr. Server AdministratorCommented:
Determine the Perfect Price for Your IT Services

Do you wonder if your IT business is truly profitable or if you should raise your prices? Learn how to calculate your overhead burden with our free interactive tool and use it to determine the right price for your IT services. Download your free eBook now!

tell-meAuthor Commented:
Is there any inbuild tool or command in Windows ?
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
tell-meAuthor Commented:
let me check one by one.

Thanks for all
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.
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.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
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.
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
tell-meAuthor Commented:
Sorry for the late payment :)
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Networking

From novice to tech pro — start learning today.