WCF Tcp Binding "The requested address is not valid in its context" Error

I have a WCF server using netTcpBinding and a client. When I run them locally, they work fine.

If I put the server on a Windows Server 2008 machine and try to start it, it will fail if I do not change the address to localhost, but the clients cannot connect to it.

I can start the client from the server to connect to the Windows Xp computer on which the server is running, and everything is fine.

Here are the server bindings:

<system.serviceModel> <services> <service name="Ricochet.Server.Controller"> <endpoint address="net.tcp://myServerIP:3315" binding="netTcpBinding" contract="Ricochet.Interfaces.IServer" bindingConfiguration="InsecureTcp"/> </service> </services> <bindings> <netTcpBinding> <binding name="InsecureTcp"> <security mode="None"/> </binding> </netTcpBinding> </bindings> </system.serviceModel> 

I created rules on the firewall to allow all traffic to the port that I use here, but no luck. Is there anything else I need to do in Windows Server 2003 to get this to work?

0
source share
1 answer

Net tcp binding requires Network Activation Services, which are only available in Windows 2008, Vista, and Windows 7. This may be part of your problem.

The other is the firewall, did you open port 3315?

0
source

Source: https://habr.com/ru/post/1379145/


All Articles