I have been searching high and low for a solution to my problem, tried various suggestions but none have worked for me so far.
I can access the WCF service perfectly fine locally, but just cannot seem to access it from another computer within a normal LAN network.
Note: I am no expert in WCF, but have done my fair share in research. I have tried different bindings, netTcpBinding
does not work for me as I get the error that its not supported.
Also, my Firewall is turned off, so I'm quite sure its not a firewall issue, and I am the built-in web server from Visual Studio, I am not sure how to host it via IIS, or where to start by doing that.
<system.serviceModel>
<services>
<service name="WCFService.TorrentService">
<endpoint contract="WCFService.ITorrentService"
address="TorrentService"
binding="basicHttpBinding">
</endpoint>
<endpoint address="TorrentService/MEX/"
binding="mexHttpBinding"
contract="IMetadataExchange">
</endpoint>
<host>
<baseAddresses>
<add baseAddress="http://192.168.7.111:3697/TorrentService"/>
</baseAddresses>
</host>
</service>
</services>
<behaviors>
<serviceBehaviors>
<behavior>
<!-- To avoid disclosing metadata information, set the values below to false before deployment -->
<serviceMetadata httpGetEnabled="true" httpsGetEnabled="true"/>
<!-- To receive exception details in faults for debugging purposes, set the value below to true. Set to false before deployment to avoid disclosing exception information -->
<serviceDebug includeExceptionDetailInFaults="false"/>
<useRequestHeadersForMetadataAddress>
<defaultPorts>
<add scheme="http" port="3697" />
</defaultPorts>
</useRequestHeadersForMetadataAddress>
</behavior>
</serviceBehaviors>
</behaviors>
<protocolMapping>
<add binding="basicHttpBinding" scheme="https" />
</protocolMapping>
<serviceHostingEnvironment aspNetCompatibilityEnabled="true" multipleSiteBindingsEnabled="true" />
Im pretty sure there's a lot of things thats not supposed to be there in the config file, as I have tried a lot of different solutions but none has worked for me so far.
When I Try to access the service from another machine, by doing the following