Hi @Peter Annandale ,
Because WCF net.tcp and HTTP cannot use the same port.
The TCP/IP protocol uses a 16-bit number, called a port, to differentiate connections to multiple network applications running on the same machine. If an application is listening on a port, then all TCP traffic for that port goes to that application. Other applications cannot listen on that port at the same time.
Many protocols have a standard or default port number that they use. For example, the HTTP protocol typically uses TCP port 80.
https://learn.microsoft.com/en-us/dotnet/framework/wcf/samples/net-tcp-port-sharing-sample
Best regards,
Lan Huang
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.