<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<system.serviceModel>
<services>
<service name="WCFHost.FileService"
behaviorConfiguration="FileServiceMEXBehavior">
<endpoint address=""
binding="netTcpBinding"
contract="FileServiceLib.IFileService"/>
<endpoint address="mex"
binding="mexTcpBinding"
contract="IMetadataExchange"/>
<host>
<baseAddresses>
<add baseAddress="net.tcp://localhost:8080/FileService"/> </baseAddresses>
</host>
</service>
</services>
<behaviors>
<serviceBehaviors>
<behavior name="FileServiceMEXBehavior">
<serviceMetadata />
</behavior>
</serviceBehaviors>
</behaviors>
</system.serviceModel>
</configuration>
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<system.serviceModel>
<bindings>
<netTcpBinding>
<binding name="netTcpBinding_IFileService" />
</netTcpBinding>
</bindings>
<client>
<endpoint address="net.tcp://remote-pc:8080/FileService"
binding="netTcpBinding"
bindingConfiguration="netTcpBinding_IFileService"
contract="IFileService"
name="netTcpBinding_IFileService"/>
</client>
</system.serviceModel>
</configuration>