.NET 远程处理中的 HTTP 端口
一台机器上的 HTTP 端口数量是否有限制?我有一个使用 .NET Remoting 的 Windows 应用程序。应用程序的每个实例都通过端口 0 的 HTTP 通道在加载时公开一个远程对象(以便可以动态决定端口)。在多用户环境中,HTTP 端口数量是否会受到限制。
提前致谢!
Is there a limit to the number of HTTP ports in a machine. I have a windows application that uses .NET Remoting. Each instance of the application, exposes a Remote object on load, through a HTTP Channel with port 0 (so that port can be decided dynamically). In a Multi user environment, will there be a limit to the number of HTTP Ports.
Thanks in Advance!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
是的,可用端口数有限制,即 65535 减去现有服务已使用的端口数(例如 SMTP [25]、HTTPS [443]、SQL Server [1433] 等)。
因此,在典型的 Windows 服务器上,悬而未决的计算结果将是 65535 - 1024(众所周知的服务端口 <= 1024,被认为是越界) - 另外 10-20 个左右可能的其他应用程序(SQL Server、MySQL) 、甲骨文等)。这将留下大约 64490 个可用职位。
然而,您真的会运行 64000 个服务器实例吗?
Yes there will be a limit to the number of ports available which is 65535 minus the number of ports already in use for existing services (for example, SMTP [25], HTTPS [443], SQL Server [1433], etc).
So on a typical Windows server, a finger in the air calculation would be 65535 - 1024 (the well know service ports <= 1024 which are considered out of bounds) - another 10-20 or so possible other application (SQL Server, MySQL, Oracle, etc). This would leave around 64490 post available.
However will you really be running 64000 of instances of your server?