title: WCF: how to know if some request goes from localhost
body: <p>Simple question:</p>
  
  <p>How to know if some request/call goes from localhost in the code below?</p>
  
  <p>Is it possible in fact?</p>
  
  <p>Thanks!!</p>
  
  <pre><code>[AspNetCompatibilityRequirements(RequirementsMode = AspNetCompatibilityRequirementsMode.Allowed)]
  [ServiceBehavior(InstanceContextMode = InstanceContextMode.PerCall, ConcurrencyMode = ConcurrencyMode.Multiple, UseSynchronizationContext = false)]
  public class Service2 : IService2
  {
          public void DoWork()
          {
             // Is this the localhost ?
          }
  }
  </code></pre>