WCF TCP Protocol
I want to host a WCF service with TCP Protocol.
I can host the service using IIS or Windows Service.
I need to know what port I need to open for开发者_开发技巧 this service for it to be accessible by client?
Hosting a WCF service using TCP/IP in IIS can be fairly involved and messy - especially on IIS6.
If you host it in your own Windows Service, you have total control over what address and port your service should use. Whatever port you decide to use needs to be accessible from the outside world. There's no limitation on what port you can use (other than avoiding the standard ports like 21, 25 and so on - use something above 1000, preferably).
精彩评论