how to get list of port which are in use on the se

2019-03-08 23:53发布

问题:

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

回答1:

Open up a command prompt then type...

netstat -a


回答2:

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

netstat -bano


回答3:

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



回答4:

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.



回答5:

nmap is a useful tool for this kind of thing