Access Google Talk thru SOCKS proxy

Hi, I have read various discussion threads related to proxy issue with smack. I am still not sure if smack support access behind the firewall.

In one of the threads, I came across this issue which is available as a patch: Need to add in http proxy support to XMLConnection. ugin.system.issuetabpanels:all-tabpanel

I installed this patch. When I am not connect via proxy I am able to connect to google talk but when I am behind proxy (and provide SOCKS details) I get following exception on connect(). The SOCKS proxy is SOCKS5: input contained no data

at org.xmlpull.mxp1.MXParser.fillBuf(

at org.xmlpull.mxp1.MXParser.more(

at org.xmlpull.mxp1.MXParser.parseProlog(

at org.xmlpull.mxp1.MXParser.nextImpl(


at org.jivesoftware.smack.PacketReader.parsePackets(

at org.jivesoftware.smack.PacketReader.access$0(

at org.jivesoftware.smack.PacketReader$

Connection failed. No response from server.:

at org.jivesoftware.smack.PacketReader.startup(

at org.jivesoftware.smack.XMPPConnection.initConnection(

at org.jivesoftware.smack.XMPPConnection.connectUsingConfiguration(XMPPConnection. java:902)

at org.jivesoftware.smack.XMPPConnection.connect(

I get the same error when:

  1. I provide wrong SOCKS user / pass

  2. I provide correct SOCKS user/pass.

I am trying to connect to Google Talk with following credentials:

private static final String xmppServer = “”;

private static final int xmppPort = 5223;

private static final String domain = “”;

Can anyone point if at all I can use smack 3.0.4 to access Google Talk (or any public XMPP server) from behind the firewall ???

I have tried both port 5222 & 5223 and getting the same exception as mentioned above.

Any news on the matter?

I have the same problem but I don’t get an exception, my code just stays forever connecting. somewhere in the middle it just freezes.