Connecting multiple servers


  • Hello,

    My WCF server runs on several PCs. A client must connect all these servers and dispatch every function call to one of them. Is it possible to put such a configuration in client's app.config? I tried to duplicate the endpoint entry (with another IP), but this of course doesn't work:

              <endpoint address=""
                  binding="wsHttpBinding" bindingConfiguration="WSHttpBinding_IConfigure"
                  contract="MyServerConfigRef.IConfigure" name="WSHttpBinding_IConfigure">
                      <dns value="localhost" />

    I'd appreciate any idea.

    Tuesday, June 29, 2010 11:42 AM


  • Hello,

    if you have same service with same configuration on multiple PC, you can use same endpoint configuration for each of them. You will have to change the address, name and identity in each of those endpoints. Than you will have to create proxy for each endpoint - generated client class (svcutil, add service reference) allows to pass name of the endpoint to distinguish the configuration of the proxy.

    Best regards,

    Tuesday, June 29, 2010 12:31 PM