title: Where do I specify proxy credentials in my WCF client?
body: <p>I have created a WCF client using channel factory.
  But I am not able to connect to a server in another machine. I am getting a (407) Prxy Authentication Required exception.</p>
  
  <pre><code>WSHttpBinding wsBinding = new WSHttpBinding();
          wsBinding.BypassProxyOnLocal = true;
  
          EndpointAddress endpoint =
            new EndpointAddress("http://machineName:7676/MyWCFService");
          ChannelFactory&lt;IService&gt; sericeInterface =
              new ChannelFactory&lt;IService&gt;(wsBinding, endpoint);
  
          sericeInterface.Credentials.Windows.ClientCredential = System.Net.CredentialCache.DefaultNetworkCredentials;
          sericeInterface = sericeInterface.CreateChannel();
  </code></pre>
  
  <p>This is my client connection code nippet. I am getting exception when I call a method of the service.</p>