Witam,
piszę gierkę w WCF + WPF i mam problem z połączeniem klient - serwer. Mianowicie gdy tworze serwer na jednym komputerze i na tym samym tworzę klientów to klienci się łączą bez problemu z serwerem. Problem następuje gdy chcę połączyć się z serwerem z innego komputera, podczas łączenia u klientów występuje wyjątek SecurityNegotiationException
Zamieszczam fragment serwera i klientów
Server app.config
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<system.serviceModel>
<services>
<service name="Clarity.Battleship.Components.Server.BattleshipGameService" behaviorConfiguration="BattleshipGameServiceBehavior">
<endpoint address="http://192.168.113.247:8088/BattleshipGameService" binding="wsDualHttpBinding" contract="Clarity.Battleship.Components.Server.IGameService" />
</service>
</services>
<behaviors>
<serviceBehaviors>
<behavior name="BattleshipGameServiceBehavior">
<serviceThrottling maxConcurrentSessions="20" />
</behavior>
</serviceBehaviors>
</behaviors>
</system.serviceModel>
<system.diagnostics>
<trace autoflush="true">
<listeners>
<add name="fileListener" type="System.Diagnostics.TextWriterTraceListener" initializeData="trace.log" traceOutputOptions="DateTime" />
<remove name="Default" />
</listeners>
</trace>
</system.diagnostics>
<appSettings>
<add key="SleepTime" value="250" />
<add key="GameTime" value="20" />
<add key="ClientSettingsProvider.ServiceUri" value="" />
<add key="ClientSettingsProvider.ConnectionStringName" value="DefaultConnection" />
</appSettings>
<system.web>
<membership defaultProvider="ClientAuthenticationMembershipProvider">
<providers>
<add name="ClientAuthenticationMembershipProvider" type="System.Web.ClientServices.Providers.ClientFormsAuthenticationMembershipProvider, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" serviceUri="" connectionStringName="DefaultConnection" credentialsProvider="" />
</providers>
</membership>
<roleManager defaultProvider="ClientRoleProvider" enabled="true">
<providers>
<add name="ClientRoleProvider" type="System.Web.ClientServices.Providers.ClientRoleProvider, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" serviceUri="" cacheTimeout="86400" connectionStringName="DefaultConnection" />
</providers>
</roleManager>
</system.web>
<connectionStrings>
<add name="DefaultConnection" connectionString="Data Source = |SQL/CE|" />
</connectionStrings>
</configuration>
Klient app.config
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<system.serviceModel>
<client>
<endpoint name="Clarity.Battleship.Components.IGameService"
address="http://192.168.113.247:8088/BattleshipGameService"
binding="wsDualHttpBinding"
bindingConfiguration="BattleshipBinding"
contract="Clarity.Battleship.Components.Server.IGameService" />
</client>
<bindings>
<!-- configure a binding that support duplex communication -->
<wsDualHttpBinding>
<binding name="BattleshipBinding"
clientBaseAddress="http://localhost:6088/BattleshipGameClient/">
</binding>
</wsDualHttpBinding>
</bindings>
</system.serviceModel>
</configuration>
Będę wdzięczny za pomoc.