时间:2019-03-17 标签:c#socketsCONNECTIONS

发布于 2024-11-04 20:52:35 字数 254 浏览 0 评论 0原文

我正在尝试打开一个用于无线连接的套接字,据我了解,我需要打开端口 8888。这个端口是什么?参见链接: http://csharp.net-informations.com/communications /csharp-多线程-服务器-socket.htm

I'm trying to open a socket for wireless connection and from what I understand I need to open port 8888. What is this port? See link:
http://csharp.net-informations.com/communications/csharp-multi-threaded-server-socket.htm

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

手心的海 2024-11-11 20:52:35

如果您想问这个端口的含义是什么,它没有注册,也没有被任何重要的东西使用。 IANA 表示它曾在某个时刻被“NewsEDGE 服务器” 使用,我可以甚至通过谷歌搜索也找不到。这只是编写教程的人选择用作示例的随机端口。

If you meant to ask what the meaning of this port is, it's not registered or known to be used by anything significant. IANA says it has at some point been used by a "NewsEDGE server", which I can't even find via a Google search. It's just a random port the person who wrote the tutorial chose to use as an example.

甜心 2024-11-11 20:52:35

8888是端口号。这可能是监听该端口的任何东西。

IANA 有一个注册端口列表,但对于私人应用程序,您通常会借用一个端口号你不希望被利用。

8888 is the number of the port. That could be anything listening to that port.

IANA has a list of registered ports, but for private applications you usually borrow a port number that you don't expect to be used.

暮色兮凉城 2024-11-11 20:52:35

任何编写侦听套接字的应用程序的人都必须选择一个对于他使用的特定协议而言唯一的端口号。这不是一个完全自由的选择,线路另一端的应用程序需要使用相同的端口号。让两个具有不同协议的不同应用程序监听同一个端口是灾难性的。此外,还必须打开该端口的防火墙。

选择像 8888 这样的数字是正确的选择。尽管这有点缺乏想象力,但随机选择与其他应用程序使用的相同数字的风险并非为零。这些应用程序通常有一个后门,一个配置文件,让您可以选择另一个,以防发生这种情况。

Anybody that writes an application that listens on a socket must pick a port number that's unique to the specific protocol he uses. It is not a completely free choice, the application on the other end of the wire needs to use the same port number. And having two distinct apps with different protocols listen on the same port is disastrous. Furthermore, the firewall has to be opened for the port.

Picking a number like 8888 is the proper thing to do. Although it is a bit unimaginative, the risk for picking the same number as used by a random other app is not zero. These apps usually have a backdoor, a config file that lets you choose another one in case that happens.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文