<iframe align="center" marginwidth="0" marginheight="0" src="http://www.zealware.com/csdnblog336280.html" frameborder="0" width="336" scrolling="no" height="280"></iframe>
原文出处:http://www.winntmag.com/Article/ArticleID/39955/39955.html
How can I determine which ports a specific process is using on Windows XP and later?
A. If you want to find out which ports a process is using and you know the process name, you must first determine the process identifier (PID). For example, to identify the PID for the pop3svc.exe process running on my system, I went to the command prompt and typed
c:/> tasklist /fi "IMAGENAME eq pop3svc.exe"
This command returned the following information:
Image Name PID Session Name Session# Mem Usage
POP3Svc.exe 3044 RDP-Tcp#9 0 2,072 K
The second column shows the PID, which I can then use with the Netstat command to search all in-use ports. For example, if I type
c:/> netstat -ano | findstr 3044
my system returns the following information:
TCP 0.0.0.0:110 0.0.0.0:0 LISTENING 3044
This result shows that the POP3 service was using TCP port 110 on all addresses.
You can also perform a reverse operation to find out which process is associated with a port. For example, to identify which process is using port 25, I could go to the command prompt and type
c:/> netstat -ano | findstr :25
On my system, this command returns the following information:
TCP 0.0.0.0:25 0.0.0.0:0 LISTENING 2500
After I identify the process (in this case, 2500), I can determine the process name by typing
c:/> tasklist /fi "PID eq 2500"
which returns the following information on my system:
Image Name PID Session Name Session# Mem Usage
inetinfo.exe 2500 RDP-Tcp#9 0 5,584 K
This information tells me that port 25 is being used by the inetinfo.exe process.
You can also use the TCPView program from http://www.sysinternals.com, which makes the whole process a lot simpler.
如何在Windows XP以上的版本中得知一个进程所使用的端口?
如果你想知道一个进程正在使用着哪个端口并且你知道此进程的名字,首先必须确定此进程的进程标识符(PID)。例如,标识运行在系统中的pop3svc.exe的PID,输入以下命令:
c:/> tasklist /fi "IMAGENAME eq pop3svc.exe"
此命令返回以下信息:
Image Name PID Session Name Session# Mem Usage
POP3Svc.exe 3044 RDP-Tcp#9 0 2,072 K
其中第二列显示了进程的PID,则我可以使用Netstat命令来搜索所有使用中的端口。如下所示:
c:/> netstat -ano | findstr 3044
系统返回以下信息:
TCP 0.0.0.0:110 0.0.0.0:0 LISTENING 3044
此结果显示了POP3服务正在所有地址上使用TCP端口110监听。
也可以使用反向的操作来找出哪一个进程给分配到一个指定的端口,例如,为了找出哪一个进程正在使用端口25,可以使用以下命令:
c:/> netstat -ano | findstr :25
系统返回了以下信息:
Image Name PID Session Name Session# Mem Usage
inetinfo.exe 2500 RDP-Tcp#9 0 5,584 K
此信息告诉我们端口25正在被inetinfo.exe进程使用着。
当然你也可以使用第三方提供的TCPView程序来完成此功能,更多有关TCPView的信息请访问http://www.sysinternals.com。
相关推荐
查找Windows端口号对应的进程,方便查找某个端口是哪个进程在占用,为查找端口占用提供便捷的方法
windows进程及端口查看工具,可监控线程或进程所占端口资源情况
1、在Windows下用CMD netstat命令可以获得当前进程监听端口号的信息,如netstat -ano可以看到IP、port、状态和监听的PID。那么可以执行CMD这个进程得到监听的端口号信息,C#代码如下: 代码如下://进程id int pid...
windows查看某个端口在被哪个进程使用着 linux查看某个端口在被哪个进程使用着
windows根据端口号查看进程,根据进程查看端口号
windows平台下,查看进程和端口对应关系的工具。小巧易用。 前往http://download.csdn.net/source/2929669下载最终版。
查看进程使用的端口 查看进程使用的端口查看进程使用的端口
windows xp 关闭445端口。 注册表修改一个键值而已, 下载后双击运行, 然后重启电脑即可。 附命令行下查看445端口是否打开的方法: 1 开始 -> 运行 -> 输入“cmd”后回车 2 在弹出的命令行窗口下输入“netstat -a -...
windows平台下,查看进程和端口对应关系的工具。小巧易用。
在Windows2000或者WindowsXp中,关闭木马常利用的135、138、139、445端口,图解
查看进程所占端口的工具; 是批处理文件,绝对绿色,安全。 目前支持在xp操作系统上运行 。
使用vs2008编写 可以查看当前系统进程号、tcp端口、UDP端口的对应情况 可以运行在windows XP系统之上 原创,谢绝在非CSDN上转载
windows 端口的详解有帮助的可以来看下
XP端口-进程查询,下载直接运行即可。。。。。。。。
windows平台下,查看进程和端口对应关系的工具。小巧易用。 前往http://download.csdn.net/source/2929669下载最终版。
WindowsXP/2003如何修改远程桌面端口 问:我在内网映射了一台电脑的3389端口在外网访问,但是觉得不安全,想把3389端口改成其它端口如3388,如何设置?答:WindowsXP/2003系统中的远程桌面是一项非常实用的功能,而默认...
win10 80端口被占用 解决system进程占用80端口的问题.zip
开发环境window10+VS2012(也...功能就是不需要通过繁琐的命令查看被占用的端口,可通过调用windows API 代码实现,主要API :GetExtendedTcpTable、GetExtendedUdpTable、CreateToolhelp32Snapshot、Module32First等实现
易语言源码易语言访问端口进程源码.rar 易语言源码易语言访问端口进程源码.rar 易语言源码易语言访问端口进程源码.rar 易语言源码易语言访问端口进程源码.rar 易语言源码易语言访问端口进程源码.rar 易语言源码...
详细列出各个进程的端口 详细列出各个进程的端口 详细列出各个进程的端口 详细列出各个进程的端口 详细列出各个进程的端口 详细列出各个进程的端口 详细列出各个进程的端口