views:

482

answers:

1

I'm writing a chat application for google talk using XMPP in .NET (with agsXMPP.dll library). The chat application's login fails in my office because there is a specific proxy for IM. How to explicitly specify the proxy details. Can it be done in app.config?

My gtalk settings which works fine for gtalk: Host:improxy Port:8085 Proxy requires authentication:false

A: 

This will use system default proxy

    <system.net>
      <defaultProxy>
        <proxy usesystemdefault="true" />
      </defaultProxy>
    </system.net>

and this your specify

<system.net>
  <defaultProxy enabled="true">
   <proxy bypassonlocal="true"
          proxyaddress="http://proxy.domain.org:8888/" />
  </defaultProxy>
 </system.net>

see here and here

ArsenMkrt
Not working :-(
iJeeves
It is not logging in. This works perfectly without proxy. GTalk Settings: Host:improxy Port:8085 Proxy requires authentication:false
iJeeves
what error are you getting? it should work, see http://usmanshaheen.wordpress.com/2009/03/23/http-status-407-proxy-authentication-required/
ArsenMkrt
The XMPP library is not throwing error. It just doesn't fire login event. I have a different proxy setting for my browser. Can it conflict with IMproxy?
iJeeves
I don't know to be honest, will this help? http://code.google.com/p/jabber-net/issues/detail?id=43
ArsenMkrt