how to get list of port which are in use on the server [closed]
Asked Answered
I

5

50

How to get list of ports which are in use on the server?

Incommensurate answered 17/9, 2009 at 11:3 Comment(0)
O
79

Open up a command prompt then type...

netstat -a
Odin answered 17/9, 2009 at 11:6 Comment(0)
L
11

There are a lot of options and tools. If you just want a list of listening ports and their owner processes try.

netstat -bano
Lambaste answered 10/9, 2013 at 13:43 Comment(1)
Note that the "b"-option may require admin-rights. (Error: "The requested operation requires elevation.")Polygamous
A
6

TCPView is a Windows program that will show you detailed listings of all TCP and UDP endpoints on your system, including the local and remote addresses and state of TCP connections. On Windows Server 2008, Vista, NT, 2000 and XP TCPView also reports the name of the process that owns the endpoint. TCPView provides a more informative and conveniently presented subset of the Netstat program that ships with Windows. The TCPView download includes Tcpvcon, a command-line version with the same functionality.

http://technet.microsoft.com/en-us/sysinternals/bb897437.aspx

Anglophobe answered 17/9, 2009 at 11:9 Comment(0)
A
3

If you mean what ports are listening, you can open a command prompt and write:

netstat

You can write:

netstat /?

for an explanation of all options.

Aylsworth answered 17/9, 2009 at 11:6 Comment(0)
S
1

nmap is a useful tool for this kind of thing

Scarlatti answered 17/9, 2009 at 11:10 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.