Client/Server WCF Chat
I'm Hosting WCF Service on the localhost and the client is running in the
same host, it works well when running both on the same machine but when I
install the client in another machine and trying to connect to the server
it fails ... here is the configuration file for the server:
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<system.serviceModel>
<bindings>
<wsDualHttpBinding>
<binding name="wsDualBinding">
<security mode="None" />
</binding>
</wsDualHttpBinding>
</bindings>
<diagnostics>
<messageLogging logEntireMessage="true" />
</diagnostics>
<behaviors>
<serviceBehaviors>
<behavior name="Metadata">
<serviceMetadata httpGetEnabled="true" />
</behavior>
</serviceBehaviors>
</behaviors>
<services>
<service behaviorConfiguration="Metadata"
name="ChatService.ChatManager">`
<endpoint address="duplex"
binding="wsDualHttpBinding"
bindingConfiguration="wsDualBinding"
contract="ChatService.IChat" />`
<endpoint address="mex"
binding="mexHttpBinding"
contract="IMetadataExchange" />`
<host>
<baseAddresses>
<add baseAddress="http://localhost:2525/chat/" />
</baseAddresses>
</host>
</service>
</services>
</system.serviceModel>
</configuration>
No comments:
Post a Comment