Click here to Skip to main content
13,771,078 members
Rate this:
 
Please Sign up or sign in to vote.
See more:
I can't seen to get the configuration right (I am a beginner at this). My WCF service is being self-hosted on a machine and I want to access if from a different machine. I assume it's all about how I define the endpoints, but I don't know how. I tried with my external IP address like in the code below, but I get an "there is no endpoint listening at ..." error. How can I configure my application to achieve what I need?

What I have tried:

<system.serviceModel>
<behaviors>
  <serviceBehaviors>
    <behavior name="name">
      <serviceMetadata httpGetEnabled="true" />
    </behavior>
  </serviceBehaviors>
</behaviors>
<services>
  <service name="Namespace.Name" behaviorConfiguration="name">
    <host>
      <baseAddresses>
        <add baseAddress="http://xxx.xxx.108.185:8888/MyService/"/>
      </baseAddresses>
    </host>
    <endpoint address="" binding="basicHttpBinding" contract="Namespace.IName" />
    <endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange" />
  </service>
</services>
Posted 13-Jun-18 11:30am

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month


Advertise | Privacy | Cookies | Terms of Service
Web01-2016 | 2.8.181119.1 | Last Updated 13 Jun 2018
Copyright © CodeProject, 1999-2018
All Rights Reserved.
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100