Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can 2 WCF service processes listen the same port?

I know 2 processes can't listen the same port, but as it happens with HTTP requests in the port 80, I know Windows can receive the packets and reroute to the appropriate services. I just don't know if it also happens with other ports and protocols (net.tcp for instance).

like image 759
Jader Dias Avatar asked Jan 18 '10 11:01

Jader Dias


People also ask

Can multiple processes connect to the same port?

For TCP, no. You can only have one application listening on the same port at one time. Now if you had 2 network cards, you could have one application listen on the first IP and the second one on the second IP using the same port number. For UDP (Multicasts), multiple applications can subscribe to the same port.

What is WCF services TCP port sharing?

Windows Communication Foundation (WCF) provides a new TCP-based network protocol (net. tcp://) for high-performance communication. WCF also introduces a new system component, the Net. TCP Port Sharing Service that enables net. tcp ports to be shared across multiple user processes.

How do I enable a port for sharing?

In the Name column of the list of services, right-click the Net. Tcp Port Sharing Service, and select Properties from the menu. To enable the manual start-up of the service, in the Properties window select the General tab, and in the Startup type box select Manual, and then click Apply.

What is Nettcp?

The CAP Lab personnel and our facility are a key component of the training services for the six New England States through the NorthEast Transportation Training Certification Program (NETTCP).


1 Answers

If you run the WCF-provided Net.Tcp Port Sharing service, you can allow multiple WCF applications to listen on, and share, the same TCP port.

like image 150
Cheeso Avatar answered Oct 10 '22 01:10

Cheeso