Hi, I'm trying to create the simplest working netTCPBinding app between two machines over my intranet.
The app works on the localhost, but when either service host or client is on another machine they can't talk to each other.
In the client app config, I put that on another machine, and change the app.config for the endpoint to be the IP of where the Service Host is running.
I'm new to WCF so possibly there's something I'm missing, here's the app.config for the client app.
the 192.168.1.69 address is the machine that is currently running the service host.
I know this machine's window's firewall is allowing this through as an exception.
I've also turned off windows firewall on the client side.
I get this error in Visual Studio will launching the client:
The socket connection was aborted. This could be caused by an error processing your message or a receive timeout being exceeded by the remote host, or an underlying network resource issue. Local socket timeout was '00:00:59.97265 80'.
<?xml version="1.0" encoding="utf-8"?>
<configuratio n>
<system.service Model>
<bindings>
<netTcpBindin g>
<binding name="netTCPBin ding" closeTimeout="0 0:01:00" openTimeout="00 :01:00"
receiveTimeout= "00:10:00" sendTimeout="00 :01:00" transactionFlow ="false"
transferMode="B uffered" transactionProt ocol="OleTransa ctions"
hostNameCompari sonMode="Strong Wildcard" listenBacklog=" 10000"
maxBufferPoolSi ze="5242808" maxBufferSize=" 655306" maxConnections= "10000"
maxReceivedMess ageSize="655306 ">
<readerQuotas maxDepth="32" maxStringConten tLength="8192" maxArrayLength= "16384"
maxBytesPerRead ="4096" maxNameTableCha rCount="16384" />
<reliableSessio n ordered="true" inactivityTimeo ut="00:10:00"
enabled="false" />
<security mode="None">
<transport clientCredentia lType="Windows" protectionLevel ="EncryptAndSig n" />
<message clientCredentia lType="Windows" />
</security>
</binding>
</netTcpBinding>
</bindings>
<client>
<endpoint address="net.tc p://192.168.1.69/Service1" binding="netTcp Binding"
bindingConfigur ation="netTCPBi nding" contract="IServ ice1"
name="netTCPBin ding">
<identity>
<dns value="localhos t" />
</identity>
</endpoint>
</client>
</system.serviceM odel>
</configuration>
thanks.
The app works on the localhost, but when either service host or client is on another machine they can't talk to each other.
In the client app config, I put that on another machine, and change the app.config for the endpoint to be the IP of where the Service Host is running.
I'm new to WCF so possibly there's something I'm missing, here's the app.config for the client app.
the 192.168.1.69 address is the machine that is currently running the service host.
I know this machine's window's firewall is allowing this through as an exception.
I've also turned off windows firewall on the client side.
I get this error in Visual Studio will launching the client:
The socket connection was aborted. This could be caused by an error processing your message or a receive timeout being exceeded by the remote host, or an underlying network resource issue. Local socket timeout was '00:00:59.97265 80'.
<?xml version="1.0" encoding="utf-8"?>
<configuratio n>
<system.service Model>
<bindings>
<netTcpBindin g>
<binding name="netTCPBin ding" closeTimeout="0 0:01:00" openTimeout="00 :01:00"
receiveTimeout= "00:10:00" sendTimeout="00 :01:00" transactionFlow ="false"
transferMode="B uffered" transactionProt ocol="OleTransa ctions"
hostNameCompari sonMode="Strong Wildcard" listenBacklog=" 10000"
maxBufferPoolSi ze="5242808" maxBufferSize=" 655306" maxConnections= "10000"
maxReceivedMess ageSize="655306 ">
<readerQuotas maxDepth="32" maxStringConten tLength="8192" maxArrayLength= "16384"
maxBytesPerRead ="4096" maxNameTableCha rCount="16384" />
<reliableSessio n ordered="true" inactivityTimeo ut="00:10:00"
enabled="false" />
<security mode="None">
<transport clientCredentia lType="Windows" protectionLevel ="EncryptAndSig n" />
<message clientCredentia lType="Windows" />
</security>
</binding>
</netTcpBinding>
</bindings>
<client>
<endpoint address="net.tc p://192.168.1.69/Service1" binding="netTcp Binding"
bindingConfigur ation="netTCPBi nding" contract="IServ ice1"
name="netTCPBin ding">
<identity>
<dns value="localhos t" />
</identity>
</endpoint>
</client>
</system.serviceM odel>
</configuration>
thanks.