WCF

Sharing port between WCF Services in netTcpBinding

WCF allows us to share the port between Services in TCP connection. For HTTP connection is allowed on IIS using HTTP.SYS Service.

By default port sharing for TCP connections are disabled. So to use port sharing between services using netTcpBinding , we need to first enable this windows service on the server .

To enable service we have two options.

First option is through command prompt

1. Open command prompt as administrator

2. Run the command c:\Windows\System32> net start NetTcpPortSharing

clip_image002

Second option is

1. Click on Start Button

2. Select Run option

3. Type Services.msc in Run window

clip_image003

4. In all listed service select and right click Net.Tcp Port Sharing Service .Choose properties. If Startup type is disabled then change it to Automatic. After changing Start up type click on Start button to Start the service.

clip_image004

Net.Tcp Port sharing service is running. Next step we need to do is to configure WCF service to share the port.

clip_image006

In this way we can enable port sharing .

About Dhananjay Kumar

Dhananjay Kumar is Developer, Blogger , Speaker, Learner , Mindcracker & Microsoft MVP.

Discussion

Trackbacks/Pingbacks

  1. Pingback: Monthly Report March 2011: Total Posts 15 « debug mode…… - December 4, 2011

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

Enter your email address to subscribe to this blog and receive notifications of new posts by email.

Join 1,380 other followers

Tweets

Categories

Disclaimer

The opinions expressed herein are my own personal opinions and do not represent my current or previous employer's view in anyway. © Copyright 2012