title: How to set up WCF Self-Hosted REST service?
body: <p>I'm trying to self-host some WCF RESTful services from my computer for consumption by machines on my local network. I have no experience with WCF and am largely a newb when it comes to this. I created a very basic, stripped down console app to see if I could get it working.</p>
  
  <pre><code>static void Main(string[] args)
      {
          Uri httpUrl = new Uri("http://localhost:8090/");
  
          var host = new WebServiceHost(typeof(TestClass), httpUrl);
          var binding = new WebHttpBinding(); // NetTcpBinding();
          host.AddServiceEndpoint(typeof(ITestClass), binding, "testing");
          ServiceDebugBehavior stp = host.Description.Behaviors.Find&lt;ServiceDebugBehavior&gt;();
          stp.HttpHelpPageEnabled = false;
  
          host.Open();
  
          Console.WriteLine("Commence with the testing!");
          Console.ReadLine();
  
          host.Close();
      }
  </code></pre>
  
  <p>Here's the service code:</p>
  
  <pre><code>[ServiceContract]
  public interface ITestClass
  {
       [WebGet]
       [OperationContract]
      string TestMethod();
  }
  
  public class TestClass : ITestClass
  {
      public string TestMethod()
      {
          return "SUCCESS";
      }
  }
  </code></pre>
  
  <p>From a browser on my localmachine, I'm able to issue a simple get request and get</p>
  
  <pre><code>&lt;string xmlns="http://schemas.microsoft.com/2003/10/Serialization/"&gt;SUCCESS&lt;/string&gt;
  </code></pre>
  
  <p>However, I don't seem to be able to ping this service from any browsers on my home network when I type in <code>http://&lt;service machine's IP&gt;:8090/testing/testmethod</code>. </p>
  
  <p>Can anyone tell me what configuration I'm missing to enable the service to be visible to other machines on my local network without needing a DNS server?</p>