kibkid Posted August 1, 2004 Share Posted August 1, 2004 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 More sharing options...
0 bithub Posted August 2, 2004 Share Posted August 2, 2004 Properties sysprops = System.getProperties(); sysprops.put("socksProxySet", "true"); sysprops.put("socksProxyHost", "somehost"); sysprops.put("socksProxyPort", "8080"); Link to comment Share on other sites More sharing options...
0 kibkid Posted August 10, 2004 Author Share Posted August 10, 2004 Hey man thanx, but when I run that it gives me an error. It says it does not recognize the symbol "Properties". Ny ideas Link to comment Share on other sites More sharing options...
Question
kibkid
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