wcf - WCF 服务如何监听与 IIS 相同的端口?

标签 wcf iis sockets tcp communication

我可以运行一个 Windows 服务托管的 WCF 服务监听 http://localhost:80/MyService 而 IIS 在 http://localhost:80 上提供页面并且两者都有效。

但是互联网上的很多地方(比如 thisthis)都说只有一个进程可以同时监听每个端口。

他们错了吗?

最佳答案

HTTP.sys makes this possible .来自文章:

...because WCF and IIS 6.0 both use the kernel-mode HTTP stack (HTTP.sys), IIS 6.0 can share port 80 with other self-hosted WCF services running on the same machine...

HTTP.sys 充当端口转发服务,用于 HTTP(端口 80)流量。

关于wcf - WCF 服务如何监听与 IIS 相同的端口?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2067830/

相关文章:

silverlight - WCF 和 Silverlight 4 的另一个 "The maximum string content length quota (8192) has been exceeded while reading XML data."问题

来自 Visual Studio 的 WCF MSMQ 服务

c# - Mvc 从 "hidden"文件夹返回 403.14 而不是 404

ruby - 如何在 Ruby 中通过 TcpSocket 发送 UTF-8 编码的字符串

WCF:更新服务引用提供重复的配置条目

php - 使用 php 的 IIS 7.5 性能问题

asp.net - 是什么导致 IIS 7.5 上传递静态文件时出现 404.4?

java - 如何读取socket中的大数据并写入socketchannel

excel - 有没有办法让 Excel VBA 将数据发送到套接字?

c# - WCF 协议(protocol)异常 : Bad Request 400 (related to http message size)