如何找到正在尝试连接的端口?
我们的实验室机器位于防火墙后面。我们曾经要求我们的 IT 团队打开所需的端口。
我们会记住每个应用程序的端口号并要求它们解锁。这真的很难。
当我们执行应用程序时,是否可以找到它试图访问哪个端口号?
we are having lab machines behind firewall. We used to ask our IT team to open the ports which are required.
We are memorizing port numbers for each application and ask them to unblock. It is really tough.
When we execute the application, is it possible to find which port number it is trying to access?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我最喜欢的可以帮助您的小程序是 TCPVIEW.exe (Sysinternals):
http://technet .microsoft.com/en-us/sysinternals/bb897437
如果您在服务器上运行此程序,您将看到哪些端口正在侦听。如果您在客户端上运行它,您将了解正在建立哪些连接以及它们连接到的端口。
My favorite little program that will help you is TCPVIEW.exe (Sysinternals):
http://technet.microsoft.com/en-us/sysinternals/bb897437
If you run this on your server you'll see what ports are listening. If you run it on the client you'll what connections are being made and the ports they're connecting to.
如果您不想使用外部程序,可以使用此 DOS 命令:
此处 http://poshcode.org/560 您可以找到 Powershell 的“对象化”NETSTAT.EXE 函数
If you don't want using an external program you can use this DOS command:
here http://poshcode.org/560 you can find a "objectized" NETSTAT.EXE function for Powershell