title: WCF Host application by add service reference?
body: <p>I have created a WCF service with some endpoints(with mex endpoint).
  If i create for example a Console Host now and put this in my main:</p>
  
  <pre><code> ServiceHost host = new ServiceHost(typeof(HelloWorld));
  
   host.Open();
  
   Console.WriteLine("The service is ready at!");
   foreach (ServiceEndpoint se in host.Description.Endpoints)
            Console.WriteLine(se.Address.ToString());
        Console.WriteLine("Press &lt;Enter&gt; to stop the service.");
   Console.ReadLine();
  
  // Close the ServiceHost.
  host.Close();
  </code></pre>
  
  <p>Is it possible to generate a app.config on the hostside by adding a service reference, or do i need to create the app config my self and make it similar to the wcf service endpoints?</p>
  
  <p>Next to this, how is it possible that some other computer on the LAN can access this host?</p>
  
  <p>(PS what the heck does this mean: A service may inlcude an mex endpoint, which obtain the ABC's of the service and returns the WSDL. (NOW THE NOT UNDERSTANDABLE PART) After the WSDL is obtained, two artifacts are generated: a proxy class in the language of the project and an app.config file. The proxy class mirrors the signature of the endpoint operations so that client code can simply "call"an endpoint. The proxy interface doesn't have to be identical to the service signature, but the proxy needs to ensure that the message transmitted to the service is precisely what is described by the service contract.(OK WHAT?)</p>