开发者

WCF TCP Protocol

开发者 https://www.devze.com 2022-12-23 04:07 出处:网络
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

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).

0

精彩评论

暂无评论...
验证码 换一张
取 消