.NET Framework Bookmark and Share   
 index > Windows Communication Foundation > WCF net.tcp default port usage
 

WCF net.tcp default port usage

Is the default port for WCF 808? Is there a way to change this during the installation of the non-http installation?

Having some issues getting this to work with port 8080. We have firewall rules for port 8080 in the environment so it would be easier to use the 808.

Thanks,

Paul

Thumperr
You can create WCF services using TCP transport which can listen on any configurable port. It is not bound to just the default port 808. When you run the application using TCP transport hosted at an address with another port, I see a firewall exception request which prompts me for creating an exception for this application. I am sure you can use either this or you can create an exception manually but you shouldn't worrythat with WCF you cannot do the communication with any configurable port. You can startforum threads on the issues you mentioned and the community will help you out.
Thanks.
Piyush - MSFT
I tested reinstalling the Feature WCF Activation, Non-HTTP Activiation on Windows Server 2008. When the feature is installed, the installation creates a firewall rule called ' Windows Communication Foundation N.etTCP Listener Adapter (TCP-In)'. This rule can't be modified and the port is set to 808.
thanks,paul
Thumperr
Hi Paul,
You are right.
default port for WCF is 808. you can learn more detail on MSDN :
How to: Configure a Windows Communication Foundation Service to Use Port Sharing

This example uses the default TCP port of 808 because the endpoint address URI does not specify a different port number. Because port sharing is explicitly enabled on the transport binding, this service can share port 808 with other services in other processes. If port sharing were not allowed and another application were already using port 808, this service would throw an AddressAlreadyInUseException when it was opened.

Here is a userful link:
http://msdn.microsoft.com/en-us/library/ms731810(VS.85).aspx
Regards

Frank Xu Lei--谦卑若愚,好学若?
专注?NET平台下分布式应用系统开发和企业应用系统集成
Focus on Distributed Applications Development and EAI based on .NET
欢迎访问老徐的中文技术博客:Welcome to My Chinese Technical Blog
欢迎访问微软WCF中文技术论坛:Welcome to Microsoft Chinese WCF Forum
欢迎访问微软WCF英文技术论坛:Welcome to Microsoft English WCF Forum
Frank Xu Lei
You can create WCF services using TCP transport which can listen on any configurable port. It is not bound to just the default port 808. When you run the application using TCP transport hosted at an address with another port, I see a firewall exception request which prompts me for creating an exception for this application. I am sure you can use either this or you can create an exception manually but you shouldn't worrythat with WCF you cannot do the communication with any configurable port. You can startforum threads on the issues you mentioned and the community will help you out.
Thanks.
Piyush - MSFT

You can use google to search for other answers

Custom Search

More Threads

• Stop debugging in Visual Studio does not free up the .SVCLOG file for Service Trace Viewer
• How to pass xml data from windows application(vb.net) to website(asp.net)?
• reliable messaging causing exceptions
• REST Resource Approach and WCF
• Message security with anonymous client access and Service Certificate
• 404 on just one of two services?
• Preparing a installer pack(dump) of WCF service project.
• How to filter the return value in one method of WCF service in client side
• The underlying connection was closed: Could not establish secure channel for SSL/TLS
• Exception while Returing a custom Collection from a WCF Service to a client and from a Client to WCF Service.