Saudações a todos, sou novo no fórum e iniciante, estou desenvolvendo uma ferramenta onde será necessário ter vários clientes usando, é um pouco embaraçoso explicar o propósito do projeto, mas irei de uma maneira mais simples e objetiva explicar o meu
problema e aguarda ajuda.
Criei uma aplicação WCF onde o objetivo é trabalhar com ela intranet(TCP) e está configurada da seguinte forma:
XML:
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<appSettings>
<add key="aspnet:UseTaskFriendlySynchronizationContext" value="true" />
</appSettings>
<system.web>
<compilation debug="true" />
</system.web>
<!-- When deploying the service library project, the content of the config file must be added to the host's
app.config file. System.Configuration does not support config files for libraries. -->
<system.serviceModel>
<bindings>
<netTcpBinding>
<binding name="customTcpBinding" maxReceivedMessageSize="20480000" transferMode="Streamed" >
<security mode="Transport">
<transport clientCredentialType="Windows" />
</security>
</binding>
</netTcpBinding>
</bindings>
<services>
<service behaviorConfiguration="WcfServiceLibrary1.Service1Behavior"
name="wcfServidor.Service1">
<endpoint address="" binding="netTcpBinding" bindingConfiguration=""
contract="wcfServidor.IService1">
<identity>
<dns value="localhost" />
</identity>
</endpoint>
<endpoint address="mex" binding="mexTcpBinding" bindingConfiguration=""
contract="IMetadataExchange" />
<host>
<baseAddresses>
<add baseAddress="net.tcp://192.168.1.106:8523/Service1" />
</baseAddresses>
</host>
</service>
</services>
<behaviors>
<serviceBehaviors>
<behavior name="WcfServiceLibrary1.Service1Behavior">
<serviceMetadata httpGetEnabled="false" />
<serviceDebug includeExceptionDetailInFaults="false" />
</behavior>
</serviceBehaviors>
</behaviors>
</system.serviceModel>
</configuration>
Nota-se que está setado o IP do servidor, ou seja, da maquina que está hospedando a aplicação que será consumida por outros computadores(clientes).
Criei um Windows Forms Application onde eu consigo consumir as funções da aplicação(WCF) do mesmo computador, ou seja, cliente e servidor na mesma maquina(192.168.1.106). O problema está quando eu tento acessar o serviço(wcf) de outra maquina pela rede, o aplicativo
(Windows Forms Application) exibe o seguinte erro;
"O servidor rejeitou as credenciais do cliente".
Galera, espero ter sido claro e como prometido, objetivo... Agradeço a atenção de todos