确定应用程序正在使用哪个端口的最佳方法是什么?
这是我办公室某人提出的问题的改编版本。 她正在尝试确定如何判断我们在该领域拥有的应用程序 MSDE 正在哪些端口上运行。
对于这个更狭窄的问题的答案将不胜感激。 我还对可以应用于任何网络应用程序的更广泛的答案感兴趣。
This is an adapted version of a question from someone in my office. She's trying to determine how to tell what ports MSDE is running on for an application we have in the field.
Answers to that narrower question would be greatly appreciated. I'm also interested in a broader answer that could be applied to any networked applications.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
netstat -b 是一个很好的答案,您可能还需要使用 -a 选项。
不带 -a netstat 显示活动连接,带 -a 则显示没有活动客户端的侦听端口。
netstat -b is a great answer, you may need to use the -a option as well.
Without -a netstat shows active connections, with -a it shows listening ports with no active clients as well.
从此处下载currports。
它将显示哪些端口打开以及哪些进程与每个端口关联。
向下滚动至:
下载 CurrPorts
Download currports from here.
It will show you which ports are open and which processes are associated with each port.
Scroll down to:
Download CurrPorts
从命令行将显示所有正在运行的应用程序使用的应用程序名称、进程所有者、地址和端口号。
from the command line will display the application name, process owner, address, and port number used for all running applications.
我一直很喜欢 sysinternals 应用程序 TCPView,现在可以在此处。 祝你好运。
I've always liked the sysinternals app TCPView, which can now be found here. Good luck.