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?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
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).