Hi,

I'm stuck on the bad side of a SOCKS firewall and I'd like to get Java
playing nice with it, at least until I get my Virtual Private Network set
up.  The SOCKS 4 protocol is trivial, so I thought I'd just write my own.
However, after a little investigation I discovered that
java.net.PlainSocketImpl actually has SOCKS4 support.  The only problem
is, I don't know how to turn it on. *embarassed grin*

I assume it's a properties file somewhere.  Here's a relevant code snippet
from PlainSocketImpl:

---------
/**
 * Returns true if implementation should use the SOCKS protocol
 * (i.e. the user has set the required properties to enable SOCKS to
 * be used).
 */
private boolean usingSocks() {
    String ssp = (String) java.security.AccessController.doPrivileged(
       new sun.security.action.GetPropertyAction(socksServerProp));
    return (ssp != null);
}

---------

socksServerProp is "socksProxyHost".

It's probably something really obvious and I feel stupid having to ask.
I've checked the Java side, which of course has a very high noise/signal
ratio.  I also checked the archives of this list, and a search for
"socks" turned up three matches - to record-breaking sex that will knock 
my _socks_ off.  Gotta love the 'net.

Check this out - from the javadoc at the top of PlainSocketImpl.  Go
Steve!
 * @author  Steven B. Byrne

Thanks for your help,
dstn.



----------------------------------------------------
--     Dustin Lang, [EMAIL PROTECTED]    --
(java developer, linux guy, freak with rainbow hair)

User, n.: a particularly  slow and unreliable input/
output  device  that  is  attached by default to the
standard input and output streams.
     (stolen from a Gamelan article, author unknown)
----------------------------------------------------


----------------------------------------------------------------------
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to