title: Getting client ip address on WCF CustomUserNameValidator
body: <p>We are using CustomUserNameValidator on our WCF project. I need to get client ip adresses when I'm authenticating.  OperationContext is null, I cannot get it. ı don't want to turn on Asp.Net Compability mode on. </p>
  
  <pre><code> public class CustomUserNameValidator : UserNamePasswordValidator
  {
      public override void Validate(string userName, string password)
      {
          if (null == userName || null == password)
          {
              throw new ArgumentNullException();
          }
  
          try
          {
              int userId = Common.AuthenticateUser(userName, password); //need ip adresses here
          }
          catch (Exception)
          {
              throw new SecurityTokenException("Unauthorized");
          }
      }
  }
  </code></pre>
  
  <p>Is there any resolve about this issue?</p>