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).
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.
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.
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.
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).
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With