The javadoc for SocketImplFactory specifically mentions that "An application, by changing the socket factory that creates the socket implementation, can configure itself to create sockets appropriate to the local firewall."
However, in order to connect to the firewall in question, one would need a real socket to do the real connection. With the default SocketImplFactory replaced, how does one go about getting a real socket?
I know that java.net.PlainSocketImpl and java.net.SocksSocketImpl are available on Sun's Java, but is there any way to do it in a way that is portable between JVMs?