问题
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?
回答1:
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.
来源:https://stackoverflow.com/questions/17371567/what-default-port-does-wcf-use-for-nettcp-when-hosted-by-iis