给定的程序使用什么端口? [英] What port is a given program using?

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

问题描述

我希望能够找出特定程序使用的端口.是否有任何在线程序或 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 提供的功能更多的功能,vasac 建议您尝试TCPView.

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

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

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