Specify Ports
- Last UpdatedJan 13, 2022
- 1 minute read
Unlike RPC the user can specify any port when Windows Communication Foundation (WCF) is used as the authentication provider.
Depending on the Binding used the administrator may not need to specify a port, for example in the case of Hypertext Transfer Protocol (HTTP) the default port of 80 will be used.
The use of different ports with a TCP-based Network Protocol (netTCP) configuration is however recommended for the purposes of stability and maintainability.
Note:
For multiple projects to share the same netTCP port, the Config-files for netTCP binding
require portSharingEnabled="true" and the net TCP port-sharing service must be running.
Port sharing is now the default in the netTCP sample Config files supplied with Global
WCF.