I would like a Java program running on network A to have a ServerSocket living on another network B through a proxy. I played with the SOCKS5 proxy server (which works), but it seems that all proxy objects in Java work only with client connections, and not with ServerSockets (without a constructor with a Proxy argument). Asking google gives a lot of hay and a few needles.
What approach should I take to run this?
If a particular client is better than a generic SOCKS or web proxy, then this is good, but it should be Java (which comes out of sshd).
Target JVM is preferred over Java 5 and then Java 6.
source
share