当IIS托管时,WCF使用什么默认端口进行nettcp? [英] What default port does WCF use for nettcp when hosted by IIS?

查看:180
本文介绍了当IIS托管时,WCF使用什么默认端口进行nettcp?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们的服务器基于WCF,由IIS托管。我们使用nettcp作为绑定。该应用程序正在运行,但我们还有一件事情我们不清楚:由于我们没有在配置中指定端口#,WCF / IIS使用的默认端口是什么?在生产环境中,我们是否需要在IIS中为WCF / NetTcp手动打开端口?

Our server is WCF based and it is hosted by IIS. We use nettcp as our binding. The app is working but we still have one thing unclear to us: Since we are not specifing a port # in our configuration, what is the default port that WCF/IIS uses? In production environment, do we need to manually open a port in IIS for WCF/NetTcp?

推荐答案

默认端口为808。您可以在此处了解有关它的更多信息:如何:配置要使用的Windows Communication Foundation服务端口共享

The default port is 808. You can learn more about it here: How to: Configure a Windows Communication Foundation Service to Use Port Sharing.

确保在防火墙中打开端口。

Make sure you open port in firewall.

这篇关于当IIS托管时,WCF使用什么默认端口进行nettcp?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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