WCF Client configuration
![](https://www.cnblogs.com/Images/OutliningIndicators/ContractedBlock.gif)
多base address 的配置文件
<service behaviorConfiguration="MyServiceBehavior" name="Hello">
<endpoint
address="httpHello"
binding="basicHttpBinding"
contract="IHello" />
<endpoint
address="nettcpHello"
binding="netTcpBinding"
contract="IHello" />
<endpoint address="MEX" binding="mexHttpBinding" contract="IMetadataExchange" />
<host>
<baseAddresses>
<add baseAddress="http://localhost:8080/"/>
<add baseAddress="net.tcp://localhost:8090/"/>
</baseAddresses>
</host>
</service>
<endpoint
address="httpHello"
binding="basicHttpBinding"
contract="IHello" />
<endpoint
address="nettcpHello"
binding="netTcpBinding"
contract="IHello" />
<endpoint address="MEX" binding="mexHttpBinding" contract="IMetadataExchange" />
<host>
<baseAddresses>
<add baseAddress="http://localhost:8080/"/>
<add baseAddress="net.tcp://localhost:8090/"/>
</baseAddresses>
</host>
</service>