如何在vb.net中查看选择的端口? [英] How to view opned ports in vb.net?

查看:179
本文介绍了如何在vb.net中查看选择的端口?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Hellow,我只想知道如何在vb.net中查看打开的端口??
如果有可用的源代码,那就更好了...
:)

Hellow, I just want to know, how to view opened ports in vb.net???
If there is a source code available it will be better...
:)

推荐答案

您是说您的本地端口吗?您需要扫描感兴趣的集中的所有本地端口.

这是说明此想法的代码:
http://social.msdn.microsoft.com/Forums/zh/netfxnetcom/thread/8f0e0f22-a2d2-43f5-9909-d491297f4337 [ http://www.iana.org/assignments/port-numbers [ ^ ].请注意以下声明:
动态和/或专用端口是从49152到65535的端口.
祝您好运,
—SA
Do you mean your local ports? You need to scan all the local ports in the set you''re interested in.

Here is the code illustrating the idea:
http://social.msdn.microsoft.com/Forums/en/netfxnetcom/thread/8f0e0f22-a2d2-43f5-9909-d491297f4337[^].

Sorry if I did not understand what did you want correctly. If you need something else, feel free to correct me and clarify your Question.


I almost forgot: Don''t forget to limit your activity to the set of ports allowed by the regulations of IANA.
Always be compliant with this document: http://www.iana.org/assignments/port-numbers[^]. Pay attention to this statement:
The Dynamic and/or Private Ports are those from 49152 through 65535.
Good luck,
—SA


这篇关于如何在vb.net中查看选择的端口?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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