给定程序使用哪个端口? [英] What port is a given program using?

查看:79
本文介绍了给定程序使用哪个端口?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我希望能够弄清楚特定程序正在使用哪个端口.是否有任何在线可用程序或Windows附带的程​​序可以告诉我哪些进程正在使用计算机上的哪些端口?

I want to be able to figure out what port a particular program is using. Are there any programs available online or that come with windows that will tell me which processes are using which ports on my computer?

PS-在您将其降级为不是编程问题之前,我正在寻找可以测试一些网络代码的程序.

PS - before you downmod this for not being a programming question, I'm looking for the program to test some networking code.

推荐答案

netstat -b -a列出了正在使用的端口,并为您提供了使用每个端口的可执行文件.我相信您需要在管理员组中才能执行此操作,并且我不知道Vista会对安全产生什么影响.

netstat -b -a lists the ports in use and gives you the executable that's using each one. I believe you need to be in the administrator group to do this, and I don't know what security implications there are on Vista.

我通常也添加-n使其更快一些,但是添加-b会使它非常慢.

I usually add -n as well to make it a little faster, but adding -b can make it quite slow.

编辑:如果您需要除netstat提供的功能以外的其他功能,请 TCPView

Edit: If you need more functionality than netstat provides, vasac suggests that you try TCPView.

这篇关于给定程序使用哪个端口?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆