Search code examples
javairc

Recommendations for a Java IRC client library that supports Socks proxies?


I'm looking for a decent Java IRC client library that supports connecting to an IRC server through a socks proxy. Any recommendations?


Solution

  • You should be able to just do

    System.setProperty("socksProxyHost","{proxy host IP}");
    System.setProperty("socksProxyPort","{proxy port}");
    

    just before you open the IRC connection and then

    System.setProperty("socksProxyHost", null);
    System.setProperty("socksProxyPort", null);
    

    after the connection has been established to undo it. That SHOULD work for even PircBot.

    Let me know if it works.