• 0

Help me to proxy a Socket connection


Question

Guys I need help with this little program. I'm writting a network support program and I need my program to make a socket connection behind a server.

I tried this:

System.setProperty( "proxySet", "true" );

System.setProperty( "http.proxyHost", "62.42.228.6" );

System.setProperty( "http.proxyPort", "80" );

and it only works for URL connections, what can I do for a Socket one?

This is not for school so don't worry about helping me cheat, this is not the case.

thanx

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 0
Properties sysprops = System.getProperties();

sysprops.put("socksProxySet", "true");
sysprops.put("socksProxyHost", "somehost");
sysprops.put("socksProxyPort", "8080");

Link to comment
Share on other sites

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.