Hi, I'm trying to play with SOCKS in Java and I found very easy to
force connections to go via a SOCKS server. For instance the CONNECT
is just a matter of few lines of code:
SocketAddress addr = new InetSocketAddress("socks.mydomain.com", 1080);
Proxy proxy = new Proxy(Proxy.Type.SOCKS, addr);
URL url = new URL("ftp://ftp.gnu.org/README");
URLConnection conn = url.openConnection(proxy);
What I cannot understand is how to use SOCKS also for binding an
application behind a firewall to a given port. In other words how to
use the BIND operation in SOCKS. I know that with
jsocks.sourceforge.net is possible to instantiate a special
SocksServerSocket to socksfy server sockets, but what I'm asking here
is if it is possible also with the standard Java API.
TIA
Bye.
--
Prima il 30% poi Barbolomeo.
--
http://people.crs4.it/dcarboni
_______________________________________________
p2p-hackers mailing list
[email protected]
http://zgp.org/mailman/listinfo/p2p-hackers
_______________________________________________
Here is a web page listing P2P Conferences:
http://www.neurogrid.net/twiki/bin/view/Main/PeerToPeerConferences